Class RevertableArraySorter<InputType>
Constructors
constructor
-
Parameters
-
sortFunction: (array: InputType[]) => InputType[]
-
- (array: InputType[]): InputType[]
-
Parameters
Returns InputType[]
Methods
sort
- sort(array: InputType[]): InputType[]
-
Parameters
Returns InputType[]
unsort
- unsort<OutputType>(arrayToUnsort: OutputType[]): OutputType[]
-
Type parameters
Parameters
-
arrayToUnsort: OutputType[]
Returns OutputType[]