api icon indicating copy to clipboard operation
api copied to clipboard

for the CRI collection is there a way to sort alphabetically the granules?

Open relarson1 opened this issue 4 years ago • 1 comments

Is there a way to sort the granules index of the CRI collection ? i.e. a request for granules doesn't have things alphabetically https://api.govinfo.gov/packages/CRI-2020/granules?offset=7500&pageSize=100&api_key= Having the ability to sort alphabetically would make it easier to see if we have retrieved all index items for a given letter easier without having to do a full reprocess of the entire package.

relarson1 avatar Dec 21 '20 15:12 relarson1

@relarson1 - that is currently not available, but something we can look at adding - sort by arbitrary field returned.

To be clear, do you want to filter by alphabet numbers for the title, or similar?

The example you have above appears to be alphabetical on first glance.

I believe the the granules are returned in the normal package order, but I can verify that.

jonquandt avatar Dec 22 '20 19:12 jonquandt