PIM-1983 : rename findByWithSortedAttribute and add some joins to reduce
number of lazy loading queries