소스 검색

HUE-7625 [assist] Sort the folders in the documents panel and home by name

Johan Ahlen 8 년 전
부모
커밋
6824568bcf
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      desktop/core/src/desktop/static/desktop/js/document/hueFileEntry.js

+ 3 - 0
desktop/core/src/desktop/static/desktop/js/document/hueFileEntry.js

@@ -26,6 +26,9 @@ var HueFileEntry = (function () {
       if (!a.isDirectory() && b.isDirectory()) {
         return 1;
       }
+      if (a.isDirectory() && b.isDirectory()) {
+        return sorts.nameAsc(a, b);
+      }
       return sorts.lastModifiedDesc(a, b);
     },
     nameAsc: function (a, b) {