Skip to content

Commit

Permalink
Toolbox: sort scripts by name
Browse files Browse the repository at this point in the history
  • Loading branch information
line0 committed May 2, 2015
1 parent 291b5a5 commit 7d139fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions macros/l0.DependencyControl.Toolbox.moon
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ buildInstalledDlgList = (scriptType, config) ->
item = "%s v%s%s"\format script.name, depRec\getVersionString(script.version),
script.activeChannel and " [#{script.activeChannel}]" or ""
list[#list+1] = item
table.sort list, (a, b) -> a\lower! < b\lower!
map[item] = script
return list, map

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

Expand Down

0 comments on commit 7d139fc

Please sign in to comment.