added sorting by clicking on column name