kinto-admin icon indicating copy to clipboard operation
kinto-admin copied to clipboard

Collection sort attribute not taken into account

Open leplatrem opened this issue 6 years ago • 1 comments

I create a collection with sort: id

The records list is sorted by -last-modified

leplatrem avatar Dec 20 '18 11:12 leplatrem

I investigated this. Basically, the collection metadata are not yet available (ROUTE_LOAD_SUCCESS) when the records listing is sent (COLLECTION_RECORDS_REQUEST)

screenshot from 2019-01-02 13-28-06

The workaround I can think of is to sort the records on the client side where COLLECTION_RECORDS_SUCCESS is handled...

leplatrem avatar Jan 02 '19 12:01 leplatrem