rsort
ArraySorts an array in descending order. Identical to sort but reverses the result. Without an argument, sorts primitives from highest to lowest. With a field argument, sorts objects by that field descending.
Syntax
rsort:field?fieldoptionalObject field to sort by descending. Omit for primitive arrays.Use cases
| Use case | Description | URL | |
|---|---|---|---|
| Most starred repos first | Surface the highest-starred repos at the top — the default leaderboard view. | https://httpip.es/api/pipe/fetch:https://api.github.com/users/octocat/repos|rsort:stargazers_count|head:5|pick:name,stargazers_count | |
| Most forked repos | Show which repos people fork the most — a proxy for a project's utility. | https://httpip.es/api/pipe/fetch:https://api.github.com/users/octocat/repos|rsort:forks_count|head:5|pick:name,forks_count | |
| Latest posts first | Reverse-sort by ID to simulate a newest-first feed. | https://httpip.es/api/pipe/fetch:https://jsonplaceholder.typicode.com/posts|rsort:id|head:5|pick:id,title | |
| Highest number first | Descending sort on a literal array to get the largest values up front. | https://httpip.es/api/pipe/echo:[3,1,4,1,5,9,2,6]|rsort | |
| Users by highest ID | Sort users by descending ID — useful for finding recently added records. | https://httpip.es/api/pipe/fetch:https://jsonplaceholder.typicode.com/users|rsort:id|pick:id,name,email |