Skip to content
This repository was archived by the owner on Apr 2, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/body.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,7 @@ var Body = Backgrid.Body = Backbone.View.extend({
// If order is null, pageable will remove the comparator on both sides,
// in this case the default insertion order comparator needs to be
// attached to get back to the order before sorting.
if (collection.fullCollection.comparator == null) {
collection.fullCollection.comparator = comparator;
}
collection.fullCollection.comparator = comparator;
collection.fullCollection.sort();
collection.trigger("backgrid:sorted", column, direction, collection);
}
Expand Down