Ticket #9857: priority_sorting.patch

File priority_sorting.patch, 556 bytes (added by Spencer Herzberg <spencer.herzberg@…>, 9 years ago)

recording priority sorting in mythweb patch

  • js/table_sort.js

    diff --git a/js/table_sort.js b/js/table_sort.js
    index 21fa3ee..beebf8c 100644
    a b var SortableTable = Class.create({ 
    165165                sort_function = 'sortDate';
    166166            else if (value.match(/^\W+ \d+$/))
    167167                sort_function = 'sortMonthDay';
    168             else if (value.match(/^[\d\.]+[%]*$/))
     168            else if (parseFloat(value))
    169169                sort_function = 'sortNumeric';
    170170            else if (value.match(/^[£$]/))
    171171                sort_function = 'sortCurrency';