Using EE v2.8.1
I need to display a list of entries, split into 4 groups, the entries should be randomised within each group (entries are grouped on a custom field value, which can be between 1 and 4).
All entries need to be displayed. They also need to be paginated, 9 entries at a time (this is done using Ajax).
They should be presented in order of group:
group 4 entries (randomised) group 3 entries (randomised) group 2 entries (randomised) group 1 entries (randomised)
Groups may contain any number of entries.
I'm using stash but I can't think of a way to fetch only those entries that are to be displayed on a page, the only method I can think of is to fetch the whole list.