(index)
| 217 | } |
| 218 | |
| 219 | function compare (index) { |
| 220 | return function (a, b) { |
| 221 | var valA = getCellValue(a, index) |
| 222 | var valB = getCellValue(b, index) |
| 223 | return $.isNumeric(valA) && $.isNumeric(valB) ? valA - valB : valA.localeCompare(valB) |
| 224 | } |
| 225 | } |
| 226 | |
| 227 | function getCellValue (row, index) { |
| 228 | return $(row).children('.status_cell').eq(index).html() |
no test coverage detected