Skip to content

Commit

Permalink
formatting code
Browse files Browse the repository at this point in the history
  • Loading branch information
BojithaPiyathilake committed May 23, 2022
1 parent 34f846c commit a7c4f7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,6 @@ public class LDAPConstants {
*/
public static final String DEFAULT_LDAP_TIME_FORMATS_PATTERN = "[uuuuMMddHHmmss[,SSS][.SSS]X]" +
"[uuuuMMddHHmmss[,SS][.SS]X][uuuuMMddHHmm[,S][.S]X]";

public static final boolean DESCENDING = false;
}
Original file line number Diff line number Diff line change
Expand Up @@ -1549,7 +1549,7 @@ protected UniqueIDPaginatedSearchResult doGetUserListWithID(Condition condition,
ldapContext.setRequestControls(new Control[] { new PagedResultsControl(pageSize, Control.CRITICAL),
new SortControl(userNameAttribute, Control.NONCRITICAL) });
} else {
SortKey sortKey = new SortKey(userNameAttribute, Control.NONCRITICAL, null);
SortKey sortKey = new SortKey(userNameAttribute, LDAPConstants.DESCENDING, null);
SortKey[] sortKeyArray = new SortKey[1];
sortKeyArray[0] = sortKey;
ldapContext.setRequestControls(new Control[] { new PagedResultsControl(pageSize, Control.CRITICAL),
Expand Down

0 comments on commit a7c4f7b

Please sign in to comment.