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

12 lines
273 B
JavaScript
Raw Permalink Normal View History

var Backbone = require('backbone')
2015-12-29 15:48:32 +00:00
var Log = require('app/models/log')
2015-12-29 15:48:32 +00:00
module.exports = Backbone.Collection.extend({
comparator: function (a, b) {
return b.get('created').localeCompare(a.get('created')) // Descending order
},
model: Log,
url: '/api/logs/'
})