diff --git a/lib/content-services/src/lib/document-list/components/document-list.component.spec.ts b/lib/content-services/src/lib/document-list/components/document-list.component.spec.ts index 44434773085..2c9ba0284e0 100644 --- a/lib/content-services/src/lib/document-list/components/document-list.component.spec.ts +++ b/lib/content-services/src/lib/document-list/components/document-list.component.spec.ts @@ -1451,7 +1451,7 @@ describe('DocumentList', () => { where: undefined, maxItems: 25, skipCount: 0, - orderBy: ['nodeType DESC', 'name asc' ], + orderBy: ['isFolder DESC', 'name asc' ], rootFolderId: 'fake-id' }, ['test-include']); }); @@ -1467,7 +1467,7 @@ describe('DocumentList', () => { where: '(isFolder=true)', maxItems: 25, skipCount: 0, - orderBy: ['nodeType DESC', 'name asc' ], + orderBy: ['isFolder DESC', 'name asc' ], rootFolderId: 'fake-id' }, ['test-include']); }); @@ -1484,7 +1484,7 @@ describe('DocumentList', () => { maxItems: 25, skipCount: 0, where: undefined, - orderBy: ['nodeType DESC', 'size DESC'], + orderBy: ['isFolder DESC', 'size DESC'], rootFolderId: 'fake-id' }, ['test-include']); }); @@ -1502,7 +1502,7 @@ describe('DocumentList', () => { expect(documentListService.getFolder).toHaveBeenCalledWith(null, { maxItems: 25, skipCount: 0, - orderBy: ['nodeType DESC', 'name asc' ], + orderBy: ['isFolder DESC', 'name asc' ], rootFolderId: 'folder-id', where: undefined }, undefined); diff --git a/lib/content-services/src/lib/document-list/components/document-list.component.ts b/lib/content-services/src/lib/document-list/components/document-list.component.ts index 80951a20a5a..c33d39cbe42 100644 --- a/lib/content-services/src/lib/document-list/components/document-list.component.ts +++ b/lib/content-services/src/lib/document-list/components/document-list.component.ts @@ -190,7 +190,7 @@ export class DocumentListComponent implements OnInit, OnChanges, OnDestroy, Afte * rule to be added to the sorting apart from the one driven by the header. */ @Input() - additionalSorting = ['nodeType DESC']; + additionalSorting = ['isFolder DESC']; /** Defines sorting mode. Can be either `client` (items in the list * are sorted client-side) or `server` (the ordering supplied by the