aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-07-07 19:31:32 +0200
committerMorris Jobke <hey@morrisjobke.de>2014-07-07 19:31:32 +0200
commited9b9ba671131e356938627e6344064f190f5313 (patch)
treeeead507894b5512288ec21a4996105487357ed06
parent268af9039ae4671be50863f852def8a0db0c7e08 (diff)
parent4ba492f28d622de4d69e2ab8bf34320280b17859 (diff)
downloadnextcloud-server-ed9b9ba671131e356938627e6344064f190f5313.tar.gz
nextcloud-server-ed9b9ba671131e356938627e6344064f190f5313.zip
Merge pull request #9501 from owncloud/shares-listsort
Fixed shared list sorting
-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);
}
});