Quote:
Originally Posted by iatheia
Realizing that there can be a lot of different types of number-based columns, perhaps a log based system would be more reasonable? So, leaving 1-9 as is, 10-99 would be in increments of 10, 100-999 would be in increments of 100, 10000 to 90000 would be in increments of 10000, etc.
|
What you want to do is make a column built from other columns in Calibre that already *has* those values, and then CC can just use it.
first_matching_cmp() would be the function you want to use, and you might want to pad the output with leading zeros. So you have 0000100, 0000100, 0005000, 010000, 020000, etc, all the way up to 900000. And first_matching_cmp() essentially is used to 'round up'. (Although it actually returns whatever arbitrary string you specified...you just specified a bunch of numbers.)
It's also possible that CC can correctly sort those numbers without leading 0s, I don't know. Or maybe you can use spaces?
If you can't figure it out how to code that column, you should ask over in the Calibre Library Management forum.