qri-io / qri

you're invited to a data party!
https://qri.io
GNU General Public License v3.0
1.11k stars 66 forks source link

feat(List): order by "name", ascending, and "updated", descending #1981

Closed ramfox closed 2 years ago

ramfox commented 2 years ago

depends on #1980

closes #1974

NOTES:

Unable to get a reliable way to sort by "created" in the core implementation without adding access to logbook for the core Collection. We would also need to add a Created field to VersionInfo. If/when we create a UberData struct, this field should be moved there.

Initially, I thought we could rely on the natural ordering of the collection, and assume that each dataset is added to the collection in the order it was created. However, this does not hold for datasets that you pull from a remote, as these can be created at any time & pulled at any later time. However, once we pull a dataset, we have access to it's history & can determine the time of creation via the logbook, hence the need to for the core implementation to access logbook to determine the "created" time.

Further: We need to enforce a more detailed & standard way to sort lists in qri core & to merge some of our different "list params". However, I think we should wait for the cursor work to land before implementing changes.