Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre Companion

Notices

Reply
 
Thread Tools Search this Thread
Old 09-21-2017, 07:02 AM   #1
EdShdBeInBed
Junior Member
EdShdBeInBed began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2015
Device: Samsung Galaxy Tab 2 10.1, Cyanogenmod 11.X
[Android] number sorting

I have a word count column I've set cc to be able to sort one. Sorts like a.dream.

But I also sync comics as CBZ to my android.

Is there a way to sort on actual file size?
EdShdBeInBed is offline   Reply With Quote
Old 09-22-2017, 08:22 PM   #2
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by EdShdBeInBed View Post
I have a word count column I've set cc to be able to sort one. Sorts like a.dream.

But I also sync comics as CBZ to my android.

Is there a way to sort on actual file size?
You can make a calibre custom column "made from other columns" and use a template to put the size of the CBZ file into the column. Once you do that you can add that column to CC's sort.

One possible template is
Code:
{:'select(formats_sizes(), 'CBZ')'}
chaley is offline   Reply With Quote
Advert
Old 09-27-2017, 01:52 PM   #3
EdShdBeInBed
Junior Member
EdShdBeInBed began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2015
Device: Samsung Galaxy Tab 2 10.1, Cyanogenmod 11.X
Quote:
Originally Posted by chaley View Post
You can make a calibre custom column "made from other columns" and use a template to put the size of the CBZ file into the column. Once you do that you can add that column to CC's sort.

One possible template is
Code:
{:'select(formats_sizes(), 'CBZ')'}
Okay... in caliber, that sorts proper. In CC, 123 sorts before 13-- it ignores number of digits. Any thoughts?
EdShdBeInBed is offline   Reply With Quote
Old 09-28-2017, 01:54 AM   #4
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by EdShdBeInBed View Post
Any thoughts?
Lots of thoughts. Buy low, sell high. Don't live in a tornado zone. Travel widely. Avoid too much salt. Why does air exist? What is an entangled photon? ...

You are probably asking for a solution to the CC sorting "anomaly". You can deal with that by adding leading zeros so that the text-representation of the number sorts correctly. One such template is
Code:
{:010d:'select(formats_sizes(), 'CBZ')'}
I will look at changing CC to note that the calibre composite column specification specifies that the column is to be sorted numerically.
chaley is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorting books based on the NUMBER of authors RotAnal Library Management 4 02-21-2017 11:00 AM
book name is reduced to book number when downloading to android polarwind Calibre 6 06-10-2016 04:09 PM
Aura HD Sorting Shelves by Number of books speakingtohe Kobo Reader 13 06-13-2013 02:05 AM
Title Sorting / Author Sorting ahi Sony Reader 0 09-14-2009 01:51 PM


All times are GMT -4. The time now is 01:18 PM.


MobileRead.com is a privately owned, operated and funded community.