Don't sort if already sorted

// FREEBIE
This commit is contained in:
lilia 2016-07-18 18:05:49 -07:00
parent 2cea499736
commit 3a50a892dc

View file

@ -13,6 +13,9 @@
var $el = this.$('.' + conversation.cid);
if ($el && $el.length > 0) {
var index = getInboxCollection().indexOf(conversation);
if (index === this.$el.index($el)) {
return;
}
if (index === 0) {
this.$el.prepend($el);
} else if (index === this.collection.length - 1) {