@@ -48,8 +48,8 @@ from e in entries
4848 join mt in morphTypes on e . MorphType equals mt . Kind into mtGroup
4949 from mt in mtGroup . DefaultIfEmpty ( )
5050 orderby
51- ! string . IsNullOrEmpty ( query ) && SqlHelpers . ContainsIgnoreCaseAccents ( e . Headword ( order . WritingSystem ) , query ! ) descending,
5251 ! string . IsNullOrEmpty ( query ) && SqlHelpers . StartsWithIgnoreCaseAccents ( e . Headword ( order . WritingSystem ) , query ! ) descending,
52+ ! string . IsNullOrEmpty ( query ) && SqlHelpers . ContainsIgnoreCaseAccents ( e . Headword ( order . WritingSystem ) , query ! ) descending,
5353 e . Headword ( order . WritingSystem ) . Length ,
5454 e . Headword ( order . WritingSystem ) ,
5555 mt != null ? mt . SecondaryOrder : stemOrder . FirstOrDefault ( ) ,
@@ -64,8 +64,8 @@ from e in entries
6464 join mt in morphTypes on e . MorphType equals mt . Kind into mtGroup
6565 from mt in mtGroup . DefaultIfEmpty ( )
6666 orderby
67- ! string . IsNullOrEmpty ( query ) && SqlHelpers . ContainsIgnoreCaseAccents ( e . Headword ( order . WritingSystem ) , query ! ) ,
6867 ! string . IsNullOrEmpty ( query ) && SqlHelpers . StartsWithIgnoreCaseAccents ( e . Headword ( order . WritingSystem ) , query ! ) ,
68+ ! string . IsNullOrEmpty ( query ) && SqlHelpers . ContainsIgnoreCaseAccents ( e . Headword ( order . WritingSystem ) , query ! ) ,
6969 e . Headword ( order . WritingSystem ) . Length descending,
7070 e . Headword ( order . WritingSystem ) descending,
7171 ( mt != null ? mt . SecondaryOrder : stemOrder . FirstOrDefault ( ) ) descending,
0 commit comments