Skip to content

Commit 7d139fc

Browse files
committed
Toolbox: sort scripts by name
1 parent 291b5a5 commit 7d139fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

macros/l0.DependencyControl.Toolbox.moon

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ buildInstalledDlgList = (scriptType, config) ->
3535
item = "%s v%s%s"\format script.name, depRec\getVersionString(script.version),
3636
script.activeChannel and " [#{script.activeChannel}]" or ""
3737
list[#list+1] = item
38+
table.sort list, (a, b) -> a\lower! < b\lower!
3839
map[item] = script
3940
return list, map
4041

@@ -102,6 +103,7 @@ install = ->
102103
for channel, rec in pairs channels
103104
item = "%s v%s%s"\format rec.name, rec.version, rec.default and "" or " [#{channel}]"
104105
list[#list+1] = item
106+
table.sort list, (a, b) -> a\lower! < b\lower!
105107
map[item] = { :namespace, :channel, feed: rec.feed, name: rec.name, virtual: true,
106108
moduleName: rec.moduleName }
107109

0 commit comments

Comments
 (0)