added sorting by column headings