Click to sort by type