mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-30 23:52:11 +01:00
Update media/src/core/core.sort.js
Further refinement - stop once all sorting classes have been seen
This commit is contained in:
parent
2afa5e4360
commit
6bce847a3b
@ -418,8 +418,14 @@ function _fnSortingClasses( oSettings )
|
||||
/* Check if we've already found the class at least once in this column
|
||||
*
|
||||
* If not, check the className of this cell
|
||||
*
|
||||
* Stop once we've found all 3 sorting classes
|
||||
*/
|
||||
abFound[iTargetCol] = abFound[iTargetCol] || ( nTds[i].className.indexOf(sClass) !== -1 );
|
||||
if (abFound.length < 3)
|
||||
{
|
||||
abFound[iTargetCol] |= nTds[i].className.indexOf(sClass) !== -1;
|
||||
}
|
||||
|
||||
if ( abFound[iTargetCol] )
|
||||
{
|
||||
nTds[i].className =
|
||||
|
Loading…
x
Reference in New Issue
Block a user