Skip to content

Reverse default sort order of images tags #294

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ArwynFr opened this issue Apr 11, 2023 · 1 comment · Fixed by #307
Closed

Reverse default sort order of images tags #294

ArwynFr opened this issue Apr 11, 2023 · 1 comment · Fixed by #307
Milestone

Comments

@ArwynFr
Copy link

ArwynFr commented Apr 11, 2023

By default, tags are sorted by creation date, as stated on #45
However they are sorted in ascending order, so latest image is at the bottom of the page.
I think it would be better the other way around.

@Joxit
Copy link
Owner

Joxit commented Apr 14, 2023

Hi, thank you for using my project and posting feature requests 😄
This is a simple and nice idea, I will take care of it and add a new configuration DEFAULT_TAG_ORDER 👍

@Joxit Joxit added this to the 2.5.0 milestone Apr 14, 2023
Joxit added a commit that referenced this issue May 19, 2023
Create new option named `TAGLIST_ORDER` that will order tags using user defined configuration.

Available values are:
| value | description |
| --- | --- |
| `num-asc;alpha-asc` | Numbers come first in **ascending** order then alphabet in **ascending** order |
| `num-desc;alpha-asc` | Numbers come first in **descending** order then alphabet in **ascending** order |
| `num-asc;alpha-desc` | Numbers come first in **ascending** order then alphabet in **descending** order |
| `num-desc;alpha-desc` | Numbers come first in **descending** order then alphabet in **descending** order |
| `alpha-asc;num-asc` | Alphabet come first in **ascending** order then numbers in **ascending** order |
| `alpha-asc;num-desc`  (default) | Alphabet come first in **ascending** order then numbers in **descending** order |
| `alpha-desc;num-asc` | Alphabet come first in **descending** order then numbers in **ascending** order |
| `alpha-desc;num-desc` | Alphabet come first in **descending** order then numbers in **descending** order |

Some examples in [test/taglist-order.test.js](https://github.com/Joxit/docker-registry-ui/blob/8bbfc5c390c334e66741d5a639d4b17c8fe6fcea/test/taglist-order.test.js)


closes #294
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants