Row sorting, and edge highlighting