![]() |
#1 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,972
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Why do marked books sometimes sort to the bottom?
Sometimes when a plugin puts a mark on a book, it ends up sorting to the very bottom of the list. This persists even when I resort or do a new search. Removing the mark and resorting resolves it.
I don't even think there's a way to sort by mark. I also have maximum_resort_levels = 12 if that matters. Is this some intended feature, or a bug? ![]() |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Sorting doesn't look at marks.
Do you have a composite column that uses the is_marked() function, and if so is that column involved somewhere in the sort? |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,972
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
No. I do have a column icon rule that checks for is_marked() but I don't see how that could affect sort.
|
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
|
Some plugins like Reading List and Find Duplicates use the marked field to sort while displaying the results. That is how for example Reading List is able to sort its lists.
I don't know whether the Reading List plugin restores the sort to its original values after it is done. The Find Duplicates restores the sort field when it is done. However it only restores one field (calibre has multisort). The next version (likely releases this week) restores the whole sort history. |
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Prodded by @capink I looked at the code. Turns out that marked is a valid field for sorting. However, there is no UI in base calibre to specify that sort. If that sort gets into the "resort levels", for example via a plugin, then there isn't any way that I know of in base calibre to get it out short of sorting on enough things to push it off the list or make it irrelevant.
The view manager plugin could do the job. Does selecting a view in the view manager that resets the sort to 'something reasonable' make the problem go away? |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,972
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I actually use view manager to handle the sorts and columnsets. Re-loading the view from it does fix it. I'm not sure why it works when a regular re-sort doesnt.
Last edited by ownedbycats; 06-15-2021 at 09:59 PM. |
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
|
regular re-sort does not change how the columns are sorted, it just re-apply the sort. View manager on other hand changes the sort order, so it removes the marked value from the sort.
|
![]() |
![]() |
![]() |
#8 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Jan 2021
Device: iPad Pro and BOOX TAP ULTRA C
|
Hi,
I am unable to get all the marked books into a group at the top? It used to but I am not sure if I have done something wrong? Is there a way or was that removed in past upgrades? Or is it me :-) which is most likely |
![]() |
![]() |
![]() |
#9 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,972
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Put this in a composite (column built by other columns) column. I suggest also setting "Show checkmarks" and "Sort/search column by: Yes/No."
Code:
program: if is_marked() then 'Yes' fi Then sort it. |
![]() |
![]() |
![]() |
#10 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Jan 2021
Device: iPad Pro and BOOX TAP ULTRA C
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I search for marked books? | proctorius | Calibre | 2 | 01-18-2021 09:11 AM |
Marked books self resurecting | theducks | Library Management | 4 | 10-02-2015 09:06 AM |
Some books marked with a star | GeckoFriend | Library Management | 4 | 10-15-2013 01:08 PM |
Books Marked on Every Restart | DoctorOhh | Library Management | 6 | 08-20-2013 06:56 AM |