Initial implementation of column-based sorting