Sort-by pull-down on category/latest

How would one create category/sort pulldowns on category/latest, something like:

image