Support numeric/"natrual" sorting when sorting by name #3821

Open
opened 2026-02-05 07:33:51 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @jamescash120 on GitHub (May 25, 2023).

Describe the Bug

If books names started with numbers like: 1. 2. - - - 10. 11. 12.
In books view names started with 10 are directly following names starting with 1.

Steps to Reproduce

  1. Create books named: "1. One", "2. Two", "10. Ten".
  2. Go to Books view on the main page
  3. See the result: 1, 10, 2

Expected Behaviour

Supposed to be: 1, 2, 10

Screenshots or Additional Context

No response

Browser Details

No response

Exact BookStack Version

BookStack v23.02.1

PHP Version

No response

Hosting Environment

Ubuntu 20.04

Originally created by @jamescash120 on GitHub (May 25, 2023). ### Describe the Bug If books names started with numbers like: 1. 2. - - - 10. 11. 12. In books view names started with 10 are directly following names starting with 1. ### Steps to Reproduce 1. Create books named: "1. One", "2. Two", "10. Ten". 2. Go to Books view on the main page 3. See the result: 1, 10, 2 ### Expected Behaviour Supposed to be: 1, 2, 10 ### Screenshots or Additional Context _No response_ ### Browser Details _No response_ ### Exact BookStack Version BookStack v23.02.1 ### PHP Version _No response_ ### Hosting Environment Ubuntu 20.04
OVERLORD added the 🔨 Feature Request label 2026-02-05 07:33:51 +03:00
Author
Owner

@ssddanbrown commented on GitHub (May 25, 2023):

Thanks for the request @jamescash120, but I'm going to recategorise this as a feature request and update the title, since we've never specifically supported numeric/"natural" sorting by name so this is not considered a break in existing supported functionality.

The current name sorting is simple just an alphabetical sort.

@ssddanbrown commented on GitHub (May 25, 2023): Thanks for the request @jamescash120, but I'm going to recategorise this as a feature request and update the title, since we've never specifically supported numeric/"natural" sorting by name so this is not considered a break in existing supported functionality. The current name sorting is simple just an alphabetical sort.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#3821