Querydeck Docs
  • 👋Welcome to Query Deck
  • Getting Started
    • 😃Get Started With QueryDeck
      • Quickstart With QueryDeck
    • How It Works?
  • REST
    • Select Method
      • Joins
      • Sorting
        • Ascending/ Descending ordering
        • Dynamic Sorting
      • Filter
        • Dynamic Filtering
        • Groups
        • Exists clause
      • Pagination
        • Offset
        • Limit
    • Insert/Upsert Method
      • Nested Inserts (Joins)
      • Conflicting Columns
    • Update Method
      • Filters
    • Delete Method
    • Authentication
    • Authorization
    • Select by Id
  • GraphQL
    • Introduction to GraphQL in QueryDeck
    • Enabling GraphQL for Columns in QueryDeck
  • Testing Endpoints
Powered by GitBook
On this page
  • Overview
  • Using Dynamic Sorting
  • Testing
  1. REST
  2. Select Method
  3. Sorting

Dynamic Sorting

PreviousAscending/ Descending orderingNextFilter

Last updated 3 months ago

Overview

Dynamic sorting allows you to retrieve data in a specified order based on user-defined parameters. This feature is especially useful for building responsive APIs where sorting criteria can change depending on user preferences or application needs.

Using Dynamic Sorting

In the sorting window choose the "dynamic sorting" tab

select the column you want to sort by

click on the "+" button to add the column

Testing

Copy the endpoint URL from the top right box on the API page

Open Postman and then paste the copied endpoint url and hit send

You should get an appropriate response