File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -709,26 +709,18 @@ private void OrderGroups(CancellationToken token = default)
709
709
if ( folderSettings . DirectoryGroupDirection == SortDirection . Ascending )
710
710
{
711
711
if ( folderSettings . DirectoryGroupOption == GroupOption . Size )
712
- {
713
712
// Always show file sections below folders
714
713
FilesAndFolders . GroupedCollection . Order ( x => x . OrderBy ( y => y . First ( ) . PrimaryItemAttribute != StorageItemTypes . Folder ) . ThenBy ( y => y . Model . SortIndexOverride ) . ThenBy ( y => y . Model . Text ) ) ;
715
- }
716
714
else
717
- {
718
715
FilesAndFolders . GroupedCollection . Order ( x => x . OrderBy ( y => y . Model . SortIndexOverride ) . ThenBy ( y => y . Model . Text ) ) ;
719
- }
720
716
}
721
717
else
722
718
{
723
719
if ( folderSettings . DirectoryGroupOption == GroupOption . Size )
724
- {
725
720
// Always show file sections below folders
726
721
FilesAndFolders . GroupedCollection . Order ( x => x . OrderBy ( y => y . First ( ) . PrimaryItemAttribute != StorageItemTypes . Folder ) . ThenByDescending ( y => y . Model . SortIndexOverride ) . ThenByDescending ( y => y . Model . Text ) ) ;
727
- }
728
722
else
729
- {
730
723
FilesAndFolders . GroupedCollection . Order ( x => x . OrderByDescending ( y => y . Model . SortIndexOverride ) . ThenByDescending ( y => y . Model . Text ) ) ;
731
- }
732
724
}
733
725
FilesAndFolders . GroupedCollection . IsSorted = true ;
734
726
}
You can’t perform that action at this time.
0 commit comments