diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2017-11-21 12:45:57 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2017-11-23 13:32:14 +0100 |
commit | 077381c7b3aa220253a18ce3bbb946e4a46d8213 (patch) | |
tree | 8a4ca1104135a465b63f5a50738f9e225fa3fbfa /core/js/share.js | |
parent | 9d95391ff14a1c753e8fda4ecaacc007572552f4 (diff) | |
download | nextcloud-server-077381c7b3aa220253a18ce3bbb946e4a46d8213.tar.gz nextcloud-server-077381c7b3aa220253a18ce3bbb946e4a46d8213.zip |
rip out obsolete recipientsDisplayName
also needs tests adjustements, and this also brings in natural sorting
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'core/js/share.js')
-rw-r--r-- | core/js/share.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/js/share.js b/core/js/share.js index 381c42c5de2..a2a3635e145 100644 --- a/core/js/share.js +++ b/core/js/share.js @@ -245,7 +245,10 @@ OC.Share = _.extend(OC.Share || {}, { */ _formatShareList: function(recipients) { var _parent = this; - recipients = _.sortBy(_.toArray(recipients), 'shareWithDisplayName'); + recipients = _.toArray(recipients); + recipients.sort(function(a, b) { + return a.shareWithDisplayName.localeCompare(b.shareWithDisplayName); + }); return $.map(recipients, function(recipient) { return _parent._formatRemoteShare(recipient.shareWith, recipient.shareWithDisplayName, t('core', 'Shared with')); }); |