In one data I have a field title and field name ( field name is the name of a pdf file uploaded, for ex : My_file.pdf and title field is like an override for the front end, a null field)
I want to sort the data in alphabetical order taking into account the name field and the title field
Actually i tried to sort only by name like this :
usort($filesContent, function($a, $b) {
return strcmp($a->getName(), $b->getName());
});
But now I'm stuck, I don't see how to add a filter on the title
can someone guide me to solve my problem ? thanks