arma-server-web-admin/public/js/app/collections/missions.js

12 lines
291 B
JavaScript
Raw Normal View History

var Backbone = require('backbone')
2015-12-29 15:48:32 +00:00
var Mission = require('app/models/mission')
2015-12-29 15:48:32 +00:00
module.exports = Backbone.Collection.extend({
2020-07-21 09:36:37 +00:00
comparator: function (a, b) {
return a.get('name').toLowerCase().localeCompare(b.get('name').toLowerCase())
},
model: Mission,
url: '/api/missions/'
})