Fixed shared list sorting

Use Array.sort instead of underscore's sortBy() as they don't use the
same method/function signature.
This commit is contained in:
Vincent Petry 2014-07-07 16:49:32 +02:00
parent 268af9039a
commit 4ba492f28d
1 changed files with 2 additions and 3 deletions

View File

@ -238,12 +238,11 @@
);
delete data.recipientsCount;
})
// Sort by expected sort comparator
.sortBy(this._sortComparator)
// Finish the chain by getting the result
.value();
return files;
// Sort by expected sort comparator
return files.sort(this._sortComparator);
}
});