Skip to content
Permalink
Browse files

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...
wagnerrp committed Sep 9, 2011
1 parent 0d17e05 commit 8b4f130641dfebf70590c70edd8f99d3ad1fa0c0
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/table_sort.js
@@ -165,7 +165,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';

0 comments on commit 8b4f130

Please sign in to comment.
You can’t perform that action at this time.