1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-02-19 17:54:14 +01:00

Dev fix: When no ordering was aplied to the table, the next order would

throw an error
This commit is contained in:
Allan Jardine 2013-12-05 12:01:33 +00:00
parent 1a317a07bf
commit 8f356ab917
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
15c2d8b6fcb5b0c9d08c43e2b66f996594cf4d12
b8cd533bc7dec1484d23ef0f8d5de1c440b2b4cf

View File

@ -4368,7 +4368,7 @@
sorting[sorting.length-1]._idx = 0;
}
}
else if ( sorting[0][0] == colIdx ) {
else if ( sorting.length && sorting[0][0] == colIdx ) {
// Single column - already sorting on this column, modify the sort
nextSortIdx = next( sorting[0] );