From 191e1976d93aaf0143f84fda86a4805d3b7cede8 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 21 Apr 2019 00:04:22 +0200 Subject: Reimplemented sorting Co-authored-by: LarsVomMars --- src/main/kotlin/FileController.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main') 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, -- cgit v1.2.3