[Pkg-owncloud-commits] [owncloud] 32/70: Fixed shared list sorting
David Prévot
taffit at moszumanska.debian.org
Mon Jul 14 17:38:05 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 2bfdd02c2a3143c0f4d280f614ea3527ca4e8f6b
Author: Vincent Petry <pvince81 at owncloud.com>
Date: Mon Jul 7 16:49:32 2014 +0200
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 e643618..0e115ae 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);
}
});
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list