you can't use &sortbyTV to sort by one of the MIGX-fields.
while you could collect all MIGX-records of all MIGX-TVs and create a sorted resource-id-list for getResources, I think this isn't the best option.
I think, it would be better to store all events in a custom-table and use a MIGXdb-TV to manage them.
Then its easy to sort them by date and pull with the same query all connected resources.
-
☆ A M B ☆
- 24,524 Posts
MIGx records are JSON-encoded strings. The string contains all the values of the entire MIGx TV for that resource. It would have to parse the JSON string for the MIGx field you're interested in, and while it's easy enough to do, getResources is big enough without adding that. You could make a custom snippet to get the MIGx JSON string and parse it, returning the value of the desired MIGx field, then use that snippet in the getResources property.