Ordenamiento de tablas, JS
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user