Skip to content

Commit

Permalink
Revise sorting strategy selection
Browse files Browse the repository at this point in the history
This corrects the selection of sorting strategies in MythWeb, changing
the numeric sort regular expression to allow negative values.

Fixes #9857
  • Loading branch information
wagnerrp committed Sep 9, 2011
1 parent d0f3ba1 commit 542e922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/table_sort.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ var SortableTable = Class.create({
sort_function = 'sortDate';
else if (value.match(/^\W+ \d+$/))
sort_function = 'sortMonthDay';
else if (value.match(/^[\d\.]+[%]*$/))
else if (value.match(/^[-]?[\d\.]+[%]*$/))
sort_function = 'sortNumeric';
else if (value.match(/^[£$]/))
sort_function = 'sortCurrency';
Expand Down

0 comments on commit 542e922

Please sign in to comment.