[Feature] Add daily sort + base sensitive.

#5
by Symbiomatrix - opened

Adds a "daily newest / oldest" sort - this will add a new 2 key sort: first, by the date part of the datetime (ie by day updated), then, alphabetically.
The render function has also been updated to separate the main sort key visually - a header for every new day.
Since models are uploaded in batches, this is essentially alphabetical sort per batch, with a clear separation of batches.
This update also includes my previous fix which makes sort listen to the bases currently filtered (plus added a proper function to construct the dict), and applies it to both date and daily sorts.
Demo here: https://huggingface.co/spaces/Symbiomatrix/malcolm-browserT

Personally, I'd make daily the default sort, but it's up to you.

Symbiomatrix changed pull request title from Add daily sort + base sensitive. to [Feature] Add daily sort + base sensitive.

hey hey!

does this mean i should disregard the previous pull request and only look into this one?

cheers :)

Hello malcolm.
If you like the daily sort feature from here, then yes.
If not, then the other PR is only the bugfix so it should be more convenient to incorporate than removing the sort related code from here.

Thanks.

Cannot merge
This branch has merge conflicts in the following files:
  • index.html

Sign up or log in to comment