Skip to content

Commit 4eb1495

Browse files
ddey2lmarini
andauthored
Fix to incorrect sorting for default cases (#337)
* Fix to incorrect sorting for default cases Signed-off-by: Dipannita Dey <[email protected]> * added my name to contributors.md and document the change Co-authored-by: Luigi Marini <[email protected]>
1 parent ef11f92 commit 4eb1495

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
88
## Unreleased
99

1010
### Fixed
11-
- masonry package was not loaded from right location sometimes
11+
- Fix to incorrect sorting for default cases. [#248](https://github.com/clowder-framework/clowder/issues/248)
12+
- Masonry package was not loaded from right location sometimes.
1213

1314
### Added
14-
1515
- Documentation: Installing Clowder on Apple Silicon M1
1616
- Documentation: Customizing clowder's deployment, simplified duplicate instructinos.
1717
- Documentation: Added "How to contribute documentation" page

CONTRIBUTORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Following is a list of contributors in alphabetical order:
1010
- Chris Navarro
1111
- Chrysovalantis Constantinou
1212
- Constantinos Sophocleous
13+
- Dipannita Dey
1314
- Gene Roeder
1415
- Gregory Jansen
1516
- Indira Gutierrez

app/controllers/Datasets.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -681,8 +681,8 @@ class Datasets @Inject() (
681681
(SortingUtils.sortFolders(filteredFolders, sortOrder).slice(limit * filepageUpdate, limit * (filepageUpdate + 1)),
682682
SortingUtils.sortFiles(filteredFiles, sortOrder).slice(limit * filepageUpdate - filteredFolders.length, limit * (filepageUpdate + 1) - filteredFolders.length))
683683
} else {
684-
(folders.get(childFolders.reverse.slice(limit * filepageUpdate, limit * (filepageUpdate + 1))).found,
685-
files.get(childFiles.reverse.slice(limit * filepageUpdate - childFolders.length, limit * (filepageUpdate + 1) - childFolders.length)).found)
684+
(folders.get(childFolders.reverse.slice(limit * filepageUpdate, limit * (filepageUpdate + 1))).found.reverse,
685+
files.get(childFiles.reverse.slice(limit * filepageUpdate - childFolders.length, limit * (filepageUpdate + 1) - childFolders.length)).found.reverse)
686686
}
687687

688688
// Get comment counts per file

0 commit comments

Comments
 (0)