adjusting active attribute on equation sort buttons