SortTs sorts the provided slice given the provided less function.
The sort is not guaranteed to be stable. For a stable sort, use StableSortTs.
For reverse sort, return j < i.
func StableSortTs(s []T, less func(i, j int) bool)
StableSortTs sorts the provided slice given the provided less
function while keeping the original order of equal elements.
For reverse sort, return j < i.