added sorting by clicking in column header