Just a thought... assuming you aren't dealing with vast quantities of data, the simplest approach might simply be to get everything in your initial fetch request and then filter and sort the resulting array of objects.