Skip to content

Commit

Permalink
#25136 include in 22.03.8
Browse files Browse the repository at this point in the history
  • Loading branch information
erickgonzalez committed Jul 27, 2023
1 parent 8de9c2f commit 151ef38
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion HOTFIX_TRACKING.md
Expand Up @@ -150,4 +150,5 @@ This maintenance release includes the following code fixes:
**Release-22.03.8**

126. https://github.com/dotCMS/core/issues/25258 : WYSIWYG not adding images when it's not default lang #25258
127. https://github.com/dotCMS/core/issues/25224 : PP - Integrity Checker, fixing conflicts is setting up identifier columns as null #25224
127. https://github.com/dotCMS/core/issues/25224 : PP - Integrity Checker, fixing conflicts is setting up identifier columns as null #25224
128. https://github.com/dotCMS/core/issues/25136 : Site Browser is not sorting items by default #25136
Expand Up @@ -107,8 +107,8 @@ public class BrowserAjax {
private static String SELECTED_BROWSER_PATH_OBJECT = "SELECTED_BROWSER_PATH_OBJECT";
Set<String> openFolders = new LinkedHashSet<>();

String lastSortBy = "name";
boolean lastSortDirectionDesc = false;
String lastSortBy = "modDate";
boolean lastSortDirectionDesc = true;

final static private Comparator<Map> nameComparator = new Comparator<Map>() {
public int compare(Map o1, Map o2) {
Expand Down Expand Up @@ -323,9 +323,8 @@ public List<Map<String, Object>> openFolderContent (String parentInode, String s

activeFolderInode = null != siteBrowserActiveFolderInode?siteBrowserActiveFolderInode:parentInode;

this.lastSortBy = sortBy;

if (sortBy != null && UtilMethods.isSet(sortBy)) {
this.lastSortBy = sortBy;
if (sortBy.equals(lastSortBy)) {
this.lastSortDirectionDesc = !this.lastSortDirectionDesc;
}
Expand Down

0 comments on commit 151ef38

Please sign in to comment.