fixes active class styling for list sorting buttons