I also updated testing packages in this and added sourcemaps to testing
I switched to using stable for sorting instead of doing it myself via index. This allows the comparator to be more "pure" and as such lets me easily check if the array is already sorted.