There was a typo that prevented it from being used.
slice.sort_proc
slice.sort_by
slice.sort_by_key
package slice
sort.Interface
sort.sort