Add sorting on header click