hay-kot/homebox

Items are sorted by Lexicographical Sorting instead of Natural Sorting

Opened this issue · 0 comments

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