Buen día comunidad
quisiera saber si esta extensión me servirá para ordenar por fechas
cuento con esto en el firebase
actualmente obtengo esto con el ejemplo
2 ordenar una lista de acuerdo con el segundo elemento
y como se puede apreciar no lo ordena
y quisiera quisiera obtenerlo en la aplicación de la siguiente manera de mayor a menor
saludos
ABG
October 13, 2023, 3:36pm
2
No, there is no longer a need for sort extensions.
Use this block
And code your own comparison test.
I see you chose a most unfortunate date format in your data base, dd-MM-yyyy,
that requires a shuffling of its parts before it can be sorted chronologically.
yyyy-MM-dd is better for that.
intente con esto y no me ordena
para recalcar que los últimos números son fechas dd MM yyyy
¿tendrás algún ejemplo?
ABG
October 13, 2023, 5:44pm
4
Can you translate your blocks to English?
ABG
October 13, 2023, 7:40pm
6
Now show us what is in that global evita_repetir using the Do It facility.
On further inspection, I see that you used a '-' math block instead of a '>' text comparison block in the sort block.
You also did not rearrange any date parts to get chronological ordering.
las fechas lo obtengo del firebase
Etiqueta: Valor
estos son mis bloques
obtengo esto
como se ve no esta ordenado
ABG
October 14, 2023, 2:12am
10
That csv has way too may quotes.
Test the length of list of each row and report back.
ABG
October 14, 2023, 2:46am
11
I missed the colon : between key and value in the Firebase console.
That means the structure that arrived was a dictionary, and not a table.
That list sort block might not know how to work with dictionaries.
Look in the list and dictionary blocks pallette for a block that can convert a dictionary into a table (list of lists).
Feed the converted table into the list sort block.
Try this, and see if the output can be sorted.
P.S. It works:
The conversion is necessary:
perfecto
si lo ordeno de mayor a menor
por ultimo
quisiera obtener en otro lavel
solo parte de la primera fila como ítem no como recortar texto
de:
20230519-10002,2024 05 08
a:
2024 05 08
saludos
ABG
October 16, 2023, 4:11pm
13
Work only from the global sorted table, not from encrusted text.
The value you want is in item 2 of item 1 of that table.
ABG:
nada glo
como haría para llegar a ese punto
ya intente en varias formar
perfecto
te lo agradezco ABG
saludos
ABG
October 16, 2023, 8:26pm
18
Oops, I forgot the dict to list of pairs conversion before the sort.
A moment ...
system
Closed
October 23, 2023, 8:39pm
20
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.