Data sorting by column selection