sorting by columns, ascending and descending