ISorter( a: T , b: T ) : number
Returns number
Defined in src/game/utilities/collection/sort/Sorter.ts:16
Methods
add Fallback
add Fallback< A > ( fallback?: SortFallback < T , R , A > , ... args: A ) : ISorter < T , R >
Parameters
Optional
fallback: SortFallback < T , R , A >
Rest
... args: A
Defined in src/game/utilities/collection/sort/Sorter.ts:28
set Mapper
set Mapper< A > ( mapper: EntryMapper < T , R , A > , ... args: A ) : ISorter < T , R >
Parameters
mapper: EntryMapper < T , R , A >
Rest
... args: A
Defined in src/game/utilities/collection/sort/Sorter.ts:41
set Reverse
set Reverse( ) : ISorter < T , R >
Defined in src/game/utilities/collection/sort/Sorter.ts:20
set Reverse( reverse: boolean ) : ISorter < T , R >
Defined in src/game/utilities/collection/sort/Sorter.ts:24
set Sorter
set Sorter< A > ( sorter?: SortFallback < T , R , A > , ... args: A ) : ISorter < T , R >
Parameters
Optional
sorter: SortFallback < T , R , A >
Rest
... args: A
Defined in src/game/utilities/collection/sort/Sorter.ts:34
Sets a fallback sorter for when two items are in the same position