![]() |
#1 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,892
Karma: 74203799
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Sorting of composite numerical columns with formatting
I have a composite column that usually shows a number. However, for a subset of books it shows a value like '60/70.'
If I set the column to sort by number, it fails to sort entirely. I have to do it by text, but this results in weird sorting (e.g. 10, then 100, then 11). Is this intended? ![]() |
![]() |
![]() |
![]() |
#2 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,408
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Setting the sort to "text" will result in the behavior you see. It sorts by character left to right. The tweak "Recognize numbers inside text when sorting (ID: numeric_collation)" might change that, but it will change it for all text sorts. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,892
Karma: 74203799
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Enabling numeric collation worked, thank you!
It said "note that doing so will cause problems with text that starts with numbers." What problems would that be? |
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,408
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
#5 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,892
Karma: 74203799
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I checked a few columns (title, author, and a custom tag-like) that had entries beginning with numbers and didn't see anything wrong.
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Should composite columns appear in Grouped Searches? | ownedbycats | Library Management | 3 | 02-13-2021 03:43 PM |
Quickview and composite columns | ownedbycats | Library Management | 2 | 12-25-2020 04:43 PM |
Composite Columns: Stripping HTML from a value | M. Northstar | Library Management | 2 | 08-28-2019 05:39 PM |
composite columns only effect part of data | Jade Aislin | Library Management | 2 | 04-13-2016 04:54 PM |
Tag Browser - Numerical sorting bonked? | Lofwyr23 | Calibre | 3 | 06-14-2014 06:28 PM |