mirror of
https://github.com/gnosygnu/xowa.git
synced 2025-06-04 00:14:14 +00:00
Xtn.Dpl: Move Dpl_page_sorter to separate file [#553]
This commit is contained in:
parent
620f196d4e
commit
23cbefdeb8
@ -25,7 +25,7 @@ class Dpl_page_sorter implements gplx.core.lists.ComparerAble {
|
|||||||
Xowd_page_itm rhs = (Xowd_page_itm)rhsObj;
|
Xowd_page_itm rhs = (Xowd_page_itm)rhsObj;
|
||||||
int multiplier = itm.Sort_ascending() == Bool_.Y_byte ? 1 : -1;
|
int multiplier = itm.Sort_ascending() == Bool_.Y_byte ? 1 : -1;
|
||||||
switch (itm.Sort_tid()) {
|
switch (itm.Sort_tid()) {
|
||||||
case Dpl_sort.Tid_categorysortkey:
|
case Dpl_sort.Tid_categorysortkey:
|
||||||
case Dpl_sort.Tid_categoryadd: return multiplier * Bry_.Compare(lhs.Ttl_page_db(), rhs.Ttl_page_db());
|
case Dpl_sort.Tid_categoryadd: return multiplier * Bry_.Compare(lhs.Ttl_page_db(), rhs.Ttl_page_db());
|
||||||
}
|
}
|
||||||
return CompareAble_.Same;
|
return CompareAble_.Same;
|
Loading…
Reference in New Issue
Block a user