I have field_collection_item view, where I am passing multiple arguments using contextual filter. It is giving me result sorted by item_id, i haven't added any sort criteria but I wanted result as per db records order. I am trying to add orderby field values in view_query_alter as below:
$view->query->add_orderby("Field(field_collection_item.item_id,2204,2198,2201,2195)");
It is not working.
Comments
Comment #2
reshma.i commentedComment #3
astonvictor commentedD7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.