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
  • Choosing type of Sort
  • Testing
  1. REST
  2. Select Method
  3. Sorting

Ascending/ Descending ordering

PreviousSortingNextDynamic Sorting

Last updated 2 months ago

Overview

When sorting a database based on a column, we can order the records by ascending or descending order.

Choosing type of Sort

By default it sorts by ascending, on click of the "ASC" key it orders it changes to descending "DESC"

Now we can see that the ordering is done by descending order

Testing

We can see the ordering of results when sending a request through postman

Copy the endpoint from the top right box

Paste the endpoint and hit send

Here we observe sorting in ascending order by customer_id

Here we observe sorting in descending order by customer_id