Upcoming database upgrades. Airtable functionality will be reduced for ~15 minutes at 06:00 UTC on Feb. 4 / 10:00 pm PT on Feb. 3. Learn more here
Apr 17, 2020 02:26 PM
Hi. I arranget items on grid by hand in the order i want them to be. Now i want to get this order as a formula, or get it programmably by some kind of api.
But api seems to return items from view always in the same order, no matter what changes in arrangement is made in view.
Is there any way to get current order of records in view?
Apr 18, 2020 04:46 AM
Hey you can use sort in the API for this - From the API Docs:
A list of sort objects that specifies how the records will be ordered. Each sort object must have a
field
key specifying the name of the field to sort on, and an optionaldirection
key that is either"asc"
or"desc"
. The default direction is"asc"
.
The
sort
parameter overrides the sorting of the view specified in theview
parameter. If neither thesort
nor theview
parameter is included, the order of records is arbitrary.