File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -68,13 +68,14 @@ private void AssertWritable()
6868 public async Task < WritingSystems > GetWritingSystems ( )
6969 {
7070 await using var repo = await repoFactory . CreateRepoAsync ( ) ;
71- var systems = await repo . WritingSystems . ToArrayAsync ( ) ;
71+ var systems = await repo . WritingSystems
72+ . OrderBy ( ws => ws . Order )
73+ . ThenBy ( ws => ws . WsId )
74+ . ToArrayAsync ( ) ;
7275 return new WritingSystems
7376 {
74- Analysis = systems . Where ( ws => ws . Type == WritingSystemType . Analysis )
75- . Select ( w => ( ( WritingSystem ) w ) ) . ToArray ( ) ,
76- Vernacular = systems . Where ( ws => ws . Type == WritingSystemType . Vernacular )
77- . Select ( w => ( ( WritingSystem ) w ) ) . ToArray ( )
77+ Analysis = [ .. systems . Where ( ws => ws . Type == WritingSystemType . Analysis ) ] ,
78+ Vernacular = [ .. systems . Where ( ws => ws . Type == WritingSystemType . Vernacular ) ]
7879 } ;
7980 }
8081
You can’t perform that action at this time.
0 commit comments