Skip to content

Sort by Name - Numeric not fully working #5922

@serinf-lauza

Description

@serinf-lauza

Describe the Bug

Hi! I'm not sure if what I'm asking is actually a bug or if it's suppose to work that way. When I'm sorting a book with the only sort operation "Name - Numeric (Desc)", it does not work when a letter is in front of it.
Example of the result I would get with "Name - Numeric (Desc)":
2
1
Page 1
Page 2

"Page 2" should be on top of "Page 1" since it's suppose to be Desc

Image Image

Steps to Reproduce

  1. Create a sorting rule with only "Name - Numeric (Desc)"
  2. Go to a book and create some pages with a name then a number "Page 1" & "Page 2"
  3. Sort the book when the new rule created

Expected Behaviour

The expected behaviour would be

Page 2
Page 1

Screenshots or Additional Context

No response

Browser Details

Chrome, Windows 11

Exact BookStack Version

v25.11.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions