Skip to content
Snippets Groups Projects
Commit 4ba492f2 authored by Vincent Petry's avatar Vincent Petry
Browse files

Fixed shared list sorting

Use Array.sort instead of underscore's sortBy() as they don't use the
same method/function signature.
parent 268af903
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment