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

12 lines
288 B
JavaScript

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