Hi,
I currently have a collection with 'deals', and each deal includes the properties, Date and LocationID. I have a page with a date picker that picks a date and invokes the query. I use a where clause (via javascript in the where return value in the mapping) to get only the 'deals' with the correct date. This part works fine.
The deals are listed in a list that is nested within a collapsible block. There are multiple collapsible blocks each representing a location. I need to somehow sort all the deals that I get with the correct date to their corresponding list/collapsible block based on their LocationID. What is the best way to do this?
I've attached a screenshot of the page. Currently I've only implemented one collapsible block, so all deals in the collection go there.