How to create sort by time

I am creating a current affairs app but every thing is fine i put time stamp on firebase while storing data

But in app its appeaing in random order

Is there any way i can sort it by date like today s data remains on top

It’s not that hard to do that… as the dates are in a list, run a function to check the index of today’s date in that list. once you get the index of todays date format the list in to a new list [ by uisng the block add items to list ] where today’s date comes at the top and rest of the dates after todays date will be the next element.

Can you help me with the blocks @help_cttricks

yeah sure! Can you share the screenshot of the blocks or any sample aia?

Check this

Hey are you there?
Here is the solution of you query…