diff options
Diffstat (limited to 'theme/list_lib.js')
-rw-r--r-- | theme/list_lib.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/theme/list_lib.js b/theme/list_lib.js index ecdf5df6c..abd790178 100644 --- a/theme/list_lib.js +++ b/theme/list_lib.js @@ -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) |