changed the sorting buttons