sort method
Sorts this slice according to the order specified by the compare
function.
Implementation
@override
void sort([int Function(T a, T b)? compare]) {
sortUnstableBy(compare ??
(a, b) => Comparable.compare(a as Comparable, b as Comparable));
}