1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-11-12 04:25:05 -05:00
kaiwa/clientapp/models/messages.js
2013-08-29 20:38:28 -07:00

20 lines
405 B
JavaScript

"use strict";
var BaseCollection = require('./baseCollection');
var Message = require('./message');
module.exports = BaseCollection.extend({
type: 'messages',
model: Message,
comparator: function (msg1, msg2) {
if (msg1.created < msg2.created) {
return -1;
}
if (msg1.created > msg2.created) {
return 1;
}
return 0;
}
});