|
|
@ -40,7 +40,8 @@ function alphanumCase(a, b) {
|
|
|
|
|
|
|
|
|
|
|
|
while (i = (j = t.charAt(x++)).charCodeAt(0)) {
|
|
|
|
while (i = (j = t.charAt(x++)).charCodeAt(0)) {
|
|
|
|
var m = (i === 46 || (i >= 48 && i <= 57));
|
|
|
|
var m = (i === 46 || (i >= 48 && i <= 57));
|
|
|
|
if (m !== n) {
|
|
|
|
// Compare has to be with != otherwise fails
|
|
|
|
|
|
|
|
if (m != n) {
|
|
|
|
tz[++y] = "";
|
|
|
|
tz[++y] = "";
|
|
|
|
n = m;
|
|
|
|
n = m;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -55,7 +56,8 @@ function alphanumCase(a, b) {
|
|
|
|
for (var x = 0; aa[x] && bb[x]; x++) {
|
|
|
|
for (var x = 0; aa[x] && bb[x]; x++) {
|
|
|
|
if (aa[x] !== bb[x]) {
|
|
|
|
if (aa[x] !== bb[x]) {
|
|
|
|
var c = Number(aa[x]), d = Number(bb[x]);
|
|
|
|
var c = Number(aa[x]), d = Number(bb[x]);
|
|
|
|
if (c === aa[x] && d === bb[x]) {
|
|
|
|
// Compare has to be with == otherwise fails
|
|
|
|
|
|
|
|
if (c == aa[x] && d == bb[x]) {
|
|
|
|
return c - d;
|
|
|
|
return c - d;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
return (aa[x] > bb[x]) ? 1 : -1;
|
|
|
|
return (aa[x] > bb[x]) ? 1 : -1;
|
|
|
|