Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- temp_transacciones.sort(function ( a, b )
- {
- var old_a = a;
- var old_b = b;
- // Aldo: Aun no me explico como es que explorer truena y peor aún este workaround funciona :/
- try
- {
- a = info_permiso[id_div].transaccion[a][ape_transaccion.TRANSACCION].toLowerCase();
- b = info_permiso[id_div].transaccion[b][ape_transaccion.TRANSACCION].toLowerCase();
- if( a < b )
- {
- return -1;
- }
- if( a > b )
- {
- return 1;
- }
- return 0;
- }
- catch(err)
- {
- a = info_permiso[id_div].transaccion[old_a][ape_transaccion.TRANSACCION].toLowerCase();
- b = info_permiso[id_div].transaccion[old_b][ape_transaccion.TRANSACCION].toLowerCase();
- if( a < b )
- {
- return -1;
- }
- if( a > b )
- {
- return 1;
- }
- return 0;
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment