bevy-website
bevy-website copied to clipboard
Improved Sorting for Assets based on Bevy Version
Currently it's a bit difficult to see what bevy assets are the most relevant. Multiple options come to mind:
- stars
- recent downloads
- forks
- most recent commit
- etc...
However as mentioned in discord by bestRanar:
I think sorting by (bevy_version_is_semver_compatible_with_latest_release, random) would be a great step up from the current random.
- https://discord.com/channels/691052431525675048/695741366520512563/1159219167388500029
I think this would be a good uncontroversial improvement.
Details
Crates that don't provide version information would be sorted to the bottom since I can't think of a much better mechanism.
Implementation:
I already looked into how difficult it would be and it doesn't seem particularly difficult. The strangest thing I found so far is that versions are currently stored as a list: https://github.com/bevyengine/bevy-website/blob/main/generate-assets/src/lib.rs#L26 https://github.com/bevyengine/bevy-website/blob/main/generate-assets/src/lib.rs#L296
To make things simpler I would probably change things to just a single version for now since I don't know what the author (@Selene-Amanita) intended.