Switch sorting functionality to button dropdown element