On this occasion I am making a stopwatch where I save the intervals in the firebase and I would like to obtain what was saved so that the last 5 saves are displayed
For this, the label as I save it is from smallest to largest with respect to time with microseconds, this means that it will never coincide and will be in an orderly manner from smallest to largest.
That's why I want to get the last 5 majors in a Lavel
This is the image of Firebase
Call back all the tags/data for 2024/ABRIL.
Get it into a List if not a list already
Get a a taglist for 2024/ABRIL
Sort the tag list descending
Return the first five values from the list
Alternatively you can set an index in firebase, then query firebase, and limit 5 Firebase | Retrieving Data
Why are you storing the same data three times in each tag ?
When I start the count everything is fine, it brings me the firebase content and positions it at the top as I want
The problem is that the firebase content does not always bring it or it takes a while
first click
it starts running the gif of processing appears
second click
Subtract save and I get 00:00:09 so far everything is fine
third click
Subtract saves and, but I don't get the 00:00:15
fourth click
Subtract save and I just get the delayed 00:00:15 when I'm already at 00:00:18
fifth click
It subtracts save and it is just updated and I get the two that were missing
00:00:15 and 00:00:18 and start again with 00:00:15 which is the current one