Skip to content
This repository was archived by the owner on Jun 12, 2024. It is now read-only.
This repository was 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
@MrTyton

Description

@MrTyton

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions