Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Items are sorted by Lexicographical Sorting instead of Natural Sorting #917

Open
5 tasks done
MrTyton opened this issue Jun 4, 2024 · 0 comments
Open
5 tasks done
Labels
bug Something isn't working

Comments

@MrTyton
Copy link

MrTyton commented Jun 4, 2024

First Check

  • This is not a feature request
  • I added a very descriptive title to this issue.
  • I used the GitHub search to find a similar issue and didn't find it.
  • I searched the documentation, with the integrated search.
  • I already read the docs and didn't find an answer.

Homebox Version

ghcr.io/hay-kot/homebox:latest

What is the issue you are experiencing?

The sorting of items only takes into account their Lexicographical Sorting, instead of a Human-Readable Natural Sort

image

There are many natural-sorting go packages in the wild, like this one (tons more but I haven't dug very far).

How can the maintainer reproduce the issue?

Add in 3 items, titled "A1, A2, A12", and the items will appear in order "A1, A12, A2"

Deployment

Unraid

Deployment Details

No response

@MrTyton MrTyton added the bug Something isn't working label Jun 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant