Simple-Paging-Grid icon indicating copy to clipboard operation
Simple-Paging-Grid copied to clipboard

Sort by numeric values

Open fiegam opened this issue 12 years ago • 1 comments

When data are provided as a table, sorting by numeric column returns data in incorrect order. This is caused by invalid sorting conditions in the _refreshData function:

if ($.isNumeric(aVal)) {
      if (aVal < bVal) {
              return 1;
      } else if (aVal > bVal) {
              return -1;
      }
      return 0;
}

fiegam avatar Nov 12 '13 09:11 fiegam

Thanks for reporting this - I'll take a look shortly.

JamesRandall avatar Nov 13 '13 20:11 JamesRandall