github.com/icza/abcsort (go): Package abcsort is a string sorting library that uses a custom, user-defined alphabet.  Implementation does not convert the input strings into byte or rune slices, so performance is rather good.  Custom sorting can be easiest achieved by using the Sorter helper type.  The essence of sorting, the less() function required by the standard lib's sort package is also exposed, and may be used "manually" like this:  Or via the StringSlice type:  Example shows how to do custom sorting using the Sorter helper type.
Keywords: alphabet|sort