How can I sort the results of a search?

Modified on Mon, 07 Nov 2022 at 04:29 PM

You can sort by attributes, either ascending or descending, when searching. For example:

query SupSearch {
  supSearch(q: "LM33", sort: "maxoutputvoltage", sortDir: desc) {
    hits
    results {
      part {
        mpn
        specs {
          attribute { shortname }
          displayValue
        }
      }
    }      
  }
}


The list of attributes you can sort by is available here.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article