ENUM

AdvertSearchSortByEnum

Determines how results are sorted.

link GraphQL Schema definition

  • enum AdvertSearchSortByEnum {
  • # For adverts with dates and/or times, start with the advert
  • #
  • # whose date/time is closest to now followed by adverts further in the future.
  • SOONEST
  • # Start with the advert with the lowest price.
  • CHEAPEST
  • # Start with the advert with the highest price.
  • MOST_EXPENSIVE
  • # Put adverts that are on sale at the top of results.
  • SALE
  • # Start with the most-recently-created advert followed by older adverts.
  • LATEST
  • # Sort alphabetically from numbers to 'a' to 'z'.
  • ALPHABETICAL
  • # Sort alphabetically from 'z' to 'a' to numbers.
  • ALPHABETICAL_DESC
  • # For searches that include location parameters, use the ElasticSearch relevance
  • # score,
  • #
  • # but include proximity of the seller to the queried location to calculate that
  • # score
  • #
  • # (closer seller equals higher score).
  • NEAREST
  • # The order of advert results when a sort type isn't specified.
  • #
  • # Put featured adverts at the top, ordering featured and non-featured adverts
  • #
  • # by the ElasticSearch relevance score.
  • DEFAULT
  • }