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 Sorting
  • Testing
  1. REST
  2. Select Method

Sorting

PreviousJoinsNextAscending/ Descending ordering

Last updated 2 months ago

Overview

Sorting helps organize your query results based on one or more columns in ascending (ASC) or descending (DESC) order.

Using Sorting

In QueryDeck, you can specify sorting options by adding an order_by parameter to your query configuration on the left side pane.

Example Sorting Request

To sort customers by last_name in ascending order, choose the required options in the dropdown of the pop up.

Then click on the 'plus' button to save and exit popup

copy endpoint from the top right corner

click on the save button

Testing

Goto postman, paste the endpoint and hit send

you should get a response similar to the one below, where records are sorted by last name in ascending order