modrinth / code

The Modrinth monorepo containing all code which powers Modrinth!
https://modrinth.com
Other
921 stars 171 forks source link

Add order index to versions (similar to gallery images) #2657

Closed Roundaround closed 1 year ago

Roundaround commented 1 year ago

Is your feature request related to a problem? Please describe.

Since the versions are always listed in published order, doing things like backporting to older versions of Minecraft make for an odd list where versions seem out-of-order.

Describe the solution you'd like

If versions used a system similar to gallery images, creators could assign sort indexes to manually order their versions.

Specific behaviors:

Describe alternatives you've considered

Semver-based default sorting, as suggested in modrinth/knossos#307, which presents its own difficulties, especially considering not everyone uses semver.

Additional context

Edit: A neat side effect of this implementation is that creators could even use the sort index as groupings. For example instead of just doing 0, 1, 2, ...etc a creator could give all their versions for 1.18 the index of 118 (or 1180 to account for minor versions) and for 1.19 the index of 119 (1190). That would make all their mods sort into the groups first, then simply order by publish date.

triphora commented 1 year ago

Duplicate of modrinth/.github#6