I was not quite sure what to search for in the forums for this topic, so I apologize in advance if this is a repeat.
I have a staff directory which outputs just fine using this code.
{exp:channel:entries channel="staff_directory" dynamic="off" orderby="last_name" sort="asc"}
{title}
{/exp:channel:entries}
I was wondering how I would go about creating links to sort the results based on a field in the channel (staff position)
link1 link2 link3
lets say link1 was administrators. Clicking link1 would re-sort the staff members showing the administrators only (or putting the administrators first in the results)