( candidate: string, previous: string | null, next: string | null, direction: SortDirection )
| 149 | } |
| 150 | |
| 151 | function isCandidateInDisplayPosition( |
| 152 | candidate: string, |
| 153 | previous: string | null, |
| 154 | next: string | null, |
| 155 | direction: SortDirection |
| 156 | ): boolean { |
| 157 | if (previous && compareDisplaySortStrings(previous, candidate, direction) >= 0) { |
| 158 | return false; |
| 159 | } |
| 160 | if (next && compareDisplaySortStrings(candidate, next, direction) >= 0) { |
| 161 | return false; |
| 162 | } |
| 163 | return true; |
| 164 | } |
| 165 | |
| 166 | function parseRank(value: string): RankLike { |
| 167 | return LexoRankValue.parse(value); |
no test coverage detected