summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-07-07 16:49:32 +0200
committerVincent Petry <pvince81@owncloud.com>2014-07-07 16:49:32 +0200
commit4ba492f28d622de4d69e2ab8bf34320280b17859 (patch)
treeeead507894b5512288ec21a4996105487357ed06 /apps
parent268af9039ae4671be50863f852def8a0db0c7e08 (diff)
downloadnextcloud-server-4ba492f28d622de4d69e2ab8bf34320280b17859.tar.gz
nextcloud-server-4ba492f28d622de4d69e2ab8bf34320280b17859.zip
Fixed shared list sorting
Use Array.sort instead of underscore's sortBy() as they don't use the same method/function signature.
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/js/sharedfilelist.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/files_sharing/js/sharedfilelist.js b/apps/files_sharing/js/sharedfilelist.js
index e643618e774..0e115ae6148 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);
}
});