Skip to content

Filters - Sort Modes

There are four sort modes available at present:

  • by start date, soonest first
  • by distance, nearest first
  • by ascending price
  • by descending price

Which mode is applied to your results is determined by the value of the sort parameter supplied in the URL.

Sorting results by start date

Example URL: https://search.imin.co/v2/sessions?location.geo[radial]=51.5,-0.2,1&sort=subEvent.startDate,asc

Each result brought back by this sort mode is an individual occurrence rather than all occurrences of a session, as they are ordered by the startDate value of the only object in the subEvent array. You will still find all occurrences matching the search parameters within the results.

Sorting results by distance

Example URL: https://search.imin.co/v2/sessions?location.geo[radial]=51.5,-0.2,1&sort=location.geo,nearest

Each result brought back by this sort mode is a session with all its occurrences present in the subEvent array.

Sorting results by ascending price

Example URL: https://search.imin.co/v2/sessions?location.geo[radial]=51.5,-0.2,1&sort=offers.imin:publicAdultPrice,asc

Each result brought back by this sort mode is a session with all its occurrences present in the subEvent array. Sorting is based on the value of offers[imin:publicAdultPrice].

Sorting results by descending price

Example URL: https://search.imin.co/v2/sessions?location.geo[radial]=51.5,-0.2,1&sort=offers.imin:publicAdultPrice,desc

Each result brought back by this sort mode is a session with all its occurrences present in the subEvent array. Sorting is based on the value of offers[imin:publicAdultPrice].