Fix sort order problem for mods

This commit is contained in:
Andrew Miner
2015-03-20 19:51:55 -07:00
parent 14cee92883
commit b18e2e8c08
3 changed files with 31 additions and 35 deletions
+2 -1
View File
@@ -106,6 +106,7 @@ module.exports = class ModPack extends BaseModel
@trigger Event.add + ':mod', mod, this
@_mods.sort (a, b)-> a.compareTo b
logger.debug "mods: #{(m.slug for m in @_mods)}"
@trigger Event.sort + ':mod', this
@trigger Event.change, this
@@ -120,7 +121,7 @@ module.exports = class ModPack extends BaseModel
return mod if mod.slug is slug
return null
getMods: ->
getAllMods: ->
return @_mods[..]
# Object Overrides #############################################################################