0

Morning (in the UK at least) - I'm trying to sort/order/filter an entry query by an array of values. The array is a list of IDs (e.g. [2,7,8]), and inside each entry is a table with a list of IDs that relate to that entry (e.g. Entry1-[1,2,3], Entry2-[4,5,6], Entry3-[7,8], Entry4-[9])

On a 'results' page, I want to sort the list of all the entries by the array. Using the examples above the results would show Entry1, Entry3, Entry2, Entry4. The entries don't need to be in order of the given array, just if the Entry's IDs are in the array then they are listed first and anything not in the array gets pushed to the end.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.