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

12 lines
272 B
JavaScript

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