Changelog
[3.1.0] - 2021-11-10
Changelog
[3.0.0] - 2021-04-08
import sort from 'fast-sort'; // older versions
import { sort } from 'fast-sort'; // v3 and up
By default sort
no longer mutates array as was case in previous versions it now creates new array instance.
sort.createNewInstance
is now provided as named export
import { createNewSortInstance } from 'fast-sort';
inPlaceSort
mutates provided array instead of creating new array instance. This was default behaviour of previous sort versionsinPlaceSorting
option that can be passed to createNewSortInstance
.