How to sort $nodes after executing an EFQ

06/07/2018


Am using Drupal 7 and EFQs. After executing the query and geting all the nodes listed in a custom module, I need to sort them on node title field. I can use usort and other php functions but my problem is the field am sorting on. Can’t seem to get it from ‘$nodes’. How can I achieve this? Noting that I must sort after the EFQ execution therefore I can’t use ‘fieldOrderBy’.

Appreciate any help given.

Thanks

قالب وردپرس