arma-server-web-admin/public/js/app/collections/missions.js
2021-07-10 15:54:55 +02:00

12 lines
290 B
JavaScript

var Backbone = require('backbone')
var Mission = require('app/models/mission')
module.exports = Backbone.Collection.extend({
comparator: function (a, b) {
return a.get('name').toLowerCase().localeCompare(b.get('name').toLowerCase())
},
model: Mission,
url: 'api/missions/'
})