Made client side sorting of missions and mods case insensitive

This commit is contained in:
Najsr 2020-07-21 11:24:51 +02:00
parent 6dffd9c551
commit f265b02770
No known key found for this signature in database
GPG Key ID: 3140DF694EFE2CA1
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ var Backbone = require('backbone')
var Mission = require('app/models/mission')
module.exports = Backbone.Collection.extend({
comparator: 'name',
comparator: function(item) { item.get('name').toLowerCase() },
model: Mission,
url: '/api/missions/'
})

View File

@ -3,7 +3,7 @@ var Backbone = require('backbone')
var Mod = require('app/models/mod')
module.exports = Backbone.Collection.extend({
comparator: 'name',
comparator: function(item) { item.get('name').toLowerCase() },
model: Mod,
url: '/api/mods/'
})