소스 검색

Alphabetize theme order

Zed 6 년 전
부모
커밋
aaf079a141
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/routes/preferences.nim

+ 1 - 1
src/routes/preferences.nim

@@ -11,7 +11,7 @@ export preferences
 proc findThemes*(dir: string): seq[string] =
   for kind, path in walkDir(dir / "css" / "themes"):
     result.add path.splitFile.name.capitalizeAscii
-  reverse(result)
+  sort(result)
 
 proc createPrefRouter*(cfg: Config) =
   router preferences: