Sort-cols

Added functionality for sort-cols