toggle for sorting ref by category or a-to-z