Hi,
sorty v0.4.0 is released with:
// Sort3 concurrently sorts underlying collection of length n via
// lesswap() which must be equivalent to:
// if less(i, k) {
// if r != s {
// swap(r, s)
// }
// return true
// }
// return false
func Sort3(n int, lesswap func(i, k, r, s int) bool)
This function based method is faster than sorty.Collection2, which in turn is faster than sort.Interface (just as a way to access generic collections).
Let me know what you think, cheers..