diff options
author | Marvin Borner | 2019-04-21 00:04:22 +0200 |
---|---|---|
committer | Marvin Borner | 2019-04-21 00:04:22 +0200 |
commit | 191e1976d93aaf0143f84fda86a4805d3b7cede8 (patch) | |
tree | 752f5732d0bc40be50b1035fecb36a689e668435 | |
parent | 9de4a1c66383f0798b19010c12c710c07146e33f (diff) |
Reimplemented sorting
Co-authored-by: LarsVomMars <lars@kroenner.eu>
-rw-r--r-- | src/main/kotlin/FileController.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/kotlin/FileController.kt b/src/main/kotlin/FileController.kt index e9c861c..b7ff9d7 100644 --- a/src/main/kotlin/FileController.kt +++ b/src/main/kotlin/FileController.kt @@ -43,7 +43,7 @@ class FileController { ) ) } - //files.sortWith(String.CASE_INSENSITIVE_ORDER) // TODO: Reimplement file array sorting in backend + files.sortWith(compareBy { it.first() }) ctx.render( "files.rocker.html", TemplateUtil.model( "files", @@ -222,7 +222,7 @@ class FileController { ) ) } - //files.sortWith(String.CASE_INSENSITIVE_ORDER) // TODO: Reimplement file array sorting in backend + files.sortWith(compareBy { it.first() }) ctx.render( "files.rocker.html", TemplateUtil.model( "files", files, |