I could run two separate filters but I’s prefer to have one filtered object containing all of the files in their natural order rather than printing an array of one type and then the other.
Sorry to open up this old topic with a very specific PHP question: I have another lookup array to be used in the filter function and just noticed it’s not available – is there any way to make this available in the function or is this by PHP design?
Edit: Ok, I got it to work by using $GLOBALS – this feels pretty hacky though.