create a directive to enable or not the sort
use ng-attr-* to enable the sort (previous is, in the end, not used)
change sort directive
remove unecessary call to search