Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Revise sorting strategy selection

This corrects the selection of sorting strategies in MythWeb, changing
the numeric sort regular expression to allow negative values.

Fixes #9857
(cherry picked from commit 542e922)
  • Loading branch information...
commit 8b4f130641dfebf70590c70edd8f99d3ad1fa0c0 1 parent 0d17e05
wagnerrp wagnerrp authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  js/table_sort.js
2  js/table_sort.js
@@ -165,7 +165,7 @@ var SortableTable = Class.create({
165 165 sort_function = 'sortDate';
166 166 else if (value.match(/^\W+ \d+$/))
167 167 sort_function = 'sortMonthDay';
168   - else if (value.match(/^[\d\.]+[%]*$/))
  168 + else if (value.match(/^[-]?[\d\.]+[%]*$/))
169 169 sort_function = 'sortNumeric';
170 170 else if (value.match(/^[�$]/))
171 171 sort_function = 'sortCurrency';

0 comments on commit 8b4f130

Please sign in to comment.
Something went wrong with that request. Please try again.