mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
HTML: Sort by number based on the chosen number format.
Sorting by the number must be based on either subsurface number or the regular indexing as choosed in settings.json Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a6fe3a2234
commit
a03e772954
1 changed files with 6 additions and 1 deletions
|
@ -374,9 +374,14 @@ function cmpNumAsc(j, iSmaller)
|
|||
return items[j].subsurface_number < items[iSmaller].subsurface_number;
|
||||
}
|
||||
|
||||
function cmpNumAsc(j, iSmaller)
|
||||
{
|
||||
return settings.subsurfaceNumbers === '0' ? items[j].number < items[iSmaller].number : items[j].subsurface_number < items[iSmaller].subsurface_number;
|
||||
}
|
||||
|
||||
function cmpNumDes(j, iSmaller)
|
||||
{
|
||||
return items[j].subsurface_number > items[iSmaller].subsurface_number;
|
||||
return settings.subsurfaceNumbers === '0' ? items[j].number > items[iSmaller].number : items[j].subsurface_number > items[iSmaller].subsurface_number;
|
||||
}
|
||||
|
||||
function cmpTimeAsc(j, iSmaller)
|
||||
|
|
Loading…
Reference in a new issue