Ordenamiento de tablas, JS

This commit is contained in:
rakcsle
2021-04-20 11:36:29 -07:00
parent c2301e8f47
commit 8cbcad5f81

View File

@@ -1667,18 +1667,18 @@ function loadsortadscroll() {
mapped.sort(function (a, b) {
return (+(a.value > b.value) || +(a.value === b.value) - 1) * multiplicador;
});
tthis.closest('tr').find('th').data('tipodato', 'string')
//tthis.closest('tr').find('th').data('tipodato', 'string')
} else {
if (tipodate == 1) {
mapped.sort(function (a, b) {
return (+(a.valued > b.valued) || +(a.valued === b.valued) - 1) * multiplicador;
});
tthis.closest('tr').find('th').data('tipodato', 'date')
//tthis.closest('tr').find('th').data('tipodato', 'date')
} else {
mapped.sort(function (a, b) {
return (+(a.valuen > b.valuen) || +(a.valuen === b.valuen) - 1) * multiplicador;
});
tthis.closest('tr').find('th').data('tipodato', 'numeric')
//tthis.closest('tr').find('th').data('tipodato', 'numeric')
}
}
mapped.each(function (i, el) {