making sort by column button work