From 4ba492f28d622de4d69e2ab8bf34320280b17859 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Mon, 7 Jul 2014 16:49:32 +0200 Subject: [PATCH] Fixed shared list sorting Use Array.sort instead of underscore's sortBy() as they don't use the same method/function signature. --- apps/files_sharing/js/sharedfilelist.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/files_sharing/js/sharedfilelist.js b/apps/files_sharing/js/sharedfilelist.js index e643618e77..0e115ae614 100644 --- a/apps/files_sharing/js/sharedfilelist.js +++ b/apps/files_sharing/js/sharedfilelist.js @@ -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); } });