mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
19 lines
473 B
JavaScript
19 lines
473 B
JavaScript
define(function (require) {
|
|
|
|
"use strict";
|
|
|
|
var $ = require('jquery'),
|
|
_ = require('underscore'),
|
|
Backbone = require('backbone'),
|
|
Server = require('app/models/server');
|
|
|
|
return Backbone.Collection.extend({
|
|
comparator: function (a, b) {
|
|
return a.get('title').toLowerCase().localeCompare(b.get('title').toLowerCase());
|
|
},
|
|
model: Server,
|
|
url: '/api/servers/'
|
|
});
|
|
|
|
});
|