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

12 lines
289 B
JavaScript
Raw Normal View History

var Backbone = require('backbone')
2014-04-08 20:59:59 +00:00
var Server = require('app/models/server')
2014-04-08 20:59:59 +00:00
module.exports = Backbone.Collection.extend({
comparator: function (a, b) {
return a.get('title').toLowerCase().localeCompare(b.get('title').toLowerCase())
},
model: Server,
url: '/api/servers/'
})