PIM-2127 : update flexible field sorter to use the new applySorter
method