toggle ascending/descending sort
fix up sort and apply filtering