cmp: implementations of [[sort::cmpfunc]]
