We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent def3c4f commit a92d96dCopy full SHA for a92d96d
1 file changed
menu/scene_tabs.go
@@ -5,6 +5,7 @@ import (
5
"os"
6
"os/user"
7
"regexp"
8
+ "sort"
9
"strings"
10
11
"github.com/libretro/ludo/input"
@@ -122,8 +123,15 @@ func refreshTabs() {
122
123
func getPlaylists() []entry {
124
playlists.LoadPlaylists()
125
126
+ // To store the keys in slice in sorted order
127
+ var keys []string
128
+ for k := range playlists.Playlists {
129
+ keys = append(keys, k)
130
+ }
131
+ sort.Strings(keys)
132
+
133
var pls []entry
- for path := range playlists.Playlists {
134
+ for _, path := range keys {
135
path := path
136
filename := utils.Filename(path)
137
count := playlistCount(path)
0 commit comments