detect active sorting button