From 267cdf9072ee6f72d204530c8217bd7142e60eef Mon Sep 17 00:00:00 2001 From: Martin Muller Date: Fri, 5 Aug 2016 13:49:35 +0000 Subject: [PATCH] Merged RETURN-OF-THE-API (5.2.0) to 5.2.N (5.2.1) 129037 adavis: REPO-243 People Live Search - Added another orderBy test following a question from Jan. - Minor change in post order code to replace a Map lookup with a List lookup. Logically the same but faster. - Replaced a NPE test failure with a failure message if TEST_COUNT is too small git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@129192 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../alfresco/rest/api/impl/QueriesImpl.java | 5 ++-- .../rest/api/tests/QueriesPeopleApiTest.java | 26 +++++++++++++++++-- 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/source/java/org/alfresco/rest/api/impl/QueriesImpl.java b/source/java/org/alfresco/rest/api/impl/QueriesImpl.java index 91ca43db59..5f4e8a439f 100644 --- a/source/java/org/alfresco/rest/api/impl/QueriesImpl.java +++ b/source/java/org/alfresco/rest/api/impl/QueriesImpl.java @@ -556,9 +556,10 @@ public class QueriesImpl implements Queries, InitializingBean public int compare(NodeRef n1, NodeRef n2) { int result = 0; - for (SortColumn sortCol : sortCols) + for (int i=0; i