mirror of
https://github.com/Mottie/tablesorter.git
synced 2025-01-12 15:24:21 +00:00
allow sorting zero value hex (0x00)
This commit is contained in:
parent
dc27ec2986
commit
4990460d0b
@ -1066,11 +1066,10 @@
|
||||
if (a === b) { return 0; }
|
||||
var xN, xD, yN, yD, xF, yF, i, mx,
|
||||
r = ts.regex;
|
||||
// numeric or hex detection
|
||||
yD = parseInt(b.match(r.hex), 16);
|
||||
// first try and sort Hex codes
|
||||
if (yD) {
|
||||
if (r.hex.test(b)) {
|
||||
xD = parseInt(a.match(r.hex), 16);
|
||||
yD = parseInt(b.match(r.hex), 16);
|
||||
if ( xD < yD ) { return -1; }
|
||||
if ( xD > yD ) { return 1; }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user