Fixed branches sort toggle being empty
What does this MR do?
Fixes the branches sort dropdown toggle being empty when sorting. Also changed the sort dropdown to match the same design as our other sort dropdowns.
Screenshots (if relevant)
What are the relevant issue numbers?
Closes #30950 (closed)