New Admins: Register for our new Pure Lecture Series!
Pure's logos
Pure Help Center for Pure Administrators

If you are a researcher, or other non-admin at your institution, click here.

  • Home
  • Announcements
  • Release Notes
  • Technical user guides
  • Training
  • Events
  • Support
  • Contact Us
  • Home
  • Training
  • Technical user guides
  • Pure API
  • API Examples

How Can We Help?

Search Results

Filter By Category

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Contact us

Sorting the results (response body) in ascending and descending.Sorting the results (response body) in ascending and descending.

Introduction

This article explains how to sort your results (response body) in the API in both ascending and descending order.

 

Security

Nothing risks when sorting the contents. However, be aware always in the API key settings that can expose sensitive information

 

How 

For example, in this endpoint: /research-outputs/orderings, there is “modified” as one of the available orderings. 
To sort the response body by descending:

  • Precede a hyphen "-" in the desired property name. For example: "-modified"
https://PUREADMIN_URL/ws/api/research-outputs?size=10&order=-modified
  • Without a hyphen "-", by default, it will sort in ascending order.
  • if there is no order in your parameter (as default). IDs is the default order in the response body. (e.g. UUID or PureID).

In another words: By indicating a minus sign or hyphen ("-"), you can sort your results in descending order (for example, by "modified" or "modified date"), which will display the most recent dates first, or from newest to oldest."

 

 

Published at February 13, 2025

Download
Table of Contents
  1. Introduction
  2. Security
  3. How
Related Articles
  • Python API Requests: Fundamental Coding Examples
  • Getting started: Pure API user guide
Keywords
  • ranking
  • ordering
  • pure api sorting

Was this article helpful?

Yes
No
Give feedback about this article

    About Pure

  • Announcements

    Additional Support

  • Events
  • Client Community
  • Training

    Need Help?

  • Contact Us
  • Submit a Support Case
  • My Cases
  • Linkedin
  • Twitter
  • Facebook
  • Youtube
Elsevier logo Relx logo

Copyright © 2025 Elsevier, except certain content provided by third parties.

  • Terms & Conditions Terms & Conditions
  • Privacy policyPrivacy policy
  • AccesibilityAccesibility
  • Cookie SettingsCookie Settings
  • Log in to Pure Help CenterLog in to Helpjuice Center

Knowledge Base Software powered by Helpjuice

Expand