arma-server-web-admin/public/js/app/collections/logs.js
2021-07-10 13:47:03 +02:00

12 lines
273 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/'
})