# How to sort entries directly from url

**URL:** <https://discourse.getcockpit.com/t/how-to-sort-entries-directly-from-url/253>\
**Category:** Support\
**Created:** [September 7, 2018, 9:14pm UTC](https://discourse.getcockpit.com/t/how-to-sort-entries-directly-from-url/253 "2018-09-07T21:14:10Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![serjoscha87](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/serjoscha87/32/151_2.png) [@serjoscha87](https://discourse.getcockpit.com/u/serjoscha87)\
**Post date:** [September 7, 2018, 9:45pm UTC](https://discourse.getcockpit.com/t/how-to-sort-entries-directly-from-url/253/2 "2018-09-07T21:45:18Z")

</div>

![image](https://canada1.discourse-cdn.com/flex030/uploads/getcockpit/original/1X/cafad994ee8d4eee998cfb3780886492d2103460.png)

and

> [@Make rest api return rows in sorted order in new cockpit version](https://discourse.getcockpit.com/t/make-rest-api-return-rows-in-sorted-order-in-new-cockpit-version/60/2):
>
> Hi,
> 
> please try the following:
> 
> `?sort[_o]=1`
> 
> Greets,  
> Artur

where the part within the brackets can be every field name of your collection (I guess)

see also:

> [@Search itens by term](https://discourse.getcockpit.com/t/search-itens-by-term/70/9):
>
> /api/collections/get/products?filter[$and][0][name]=Iphone&filter[$and][1][name]=Samsung

I guess sorting should be applied to URL the same way as filtering is

---

_[View the full topic](https://discourse.getcockpit.com/t/how-to-sort-entries-directly-from-url/253)._
