I want to sort a slice of []uint
. Does this make sense? Is there something I'm missing about uint
s that make them unsortable? I notice that the sort package has an IntSlice
and Float64Slice
, but nothing for uint
.
If uint
s are sortable, then can I just copy the same implementation for Len()
, Less(i, j int)
and Swap(i, j int)
that they've used for the sort.IntSlice
?