comicbox.readinglists.combine.order ¶
Put the groups of several lists in one reading order.
The tokens are group ids. The first ordered input is the backbone, and nothing ever moves one of its entries: further ordered inputs only insert the groups the merged sequence lacks, unordered inputs place theirs by date, and with no ordered input everything sorts by date.
GroupOrderConflict dataclass ¶
A shared group an input puts elsewhere; group is a group id.
Source code in comicbox/readinglists/combine/order.py
20 21 22 23 24 25 26 | |
order_groups(sequences, ordered, sort_keys, dates) ¶
Order every group, given each input’s sequence of groups in rank order.
sort_keys and dates are indexed by group id. Returns the group ids in reading order and the order conflicts.
Source code in comicbox/readinglists/combine/order.py
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 | |