add comments explaining comparator functions for *_sort(...)