app-center
app-center copied to clipboard
channel dropdown - reverse the order
In the snap detail page, the channel dropdown is showing beta first. Let's reverse the order by having stable appear first on the list.
Consistent with what we do on snapcraft.io:
Hello @anasereijo,
I am trying to identify an approach to fix this. I don't see we can easily identify the sort order from the available data. Please suggest if there is any standard way to identify this.
During my exploration, observed that we have few fields to rely on, like Channel name, version, and published date. Dropdown items can be sorted on version, channel name. Is this okay?
For snaps having different tags for channels like V7/stable, in addition to latest/stable, can you suggest the best way to sort.
First group channels by version, and then in each group sort items so that channels will be displayed in the order of {tag}/stable, {tag}/candidate, {tag}/beta, {tag}/edge. Where {tag} can be v6, v7..