mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
12 lines
291 B
JavaScript
12 lines
291 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/'
|
|
})
|