PIM-3250 : add locale check in entity sorter (orm)