sorting by column is now working