fixes to sort menu