Implement multi-column sorting with sortcols/sortdir