Skip to content

Commit 1df4a94

Browse files
committed
Sort tags list
1 parent eb54ade commit 1df4a94

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nyaa_cui.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
"github.com/fatih/color"
1414
"github.com/jroimartin/gocui"
1515
"github.com/urfave/cli"
16+
"sort"
1617
)
1718

1819
func malNyaaCui(ctx *cli.Context) error {
@@ -372,6 +373,7 @@ func (nc *nyaaCui) FilterByTag() {
372373
}
373374
}
374375
}
376+
sort.Strings(tags)
375377
tags[0] = "None"
376378

377379
selIdxChan, cleanUp, err := dialog.ListSelect(nc.Gui, "Select title filter", tags)

0 commit comments

Comments
 (0)