A simple hack for storing Firebase Data using dates

  • Step 1: Select a initial date.
  • Step 2: while storing the data with its date, make sure to calculate the no days from the initial defined date, and store it with the data.
  • Step 3: fetch the list of data you want to sort and store it within a list.
  • Step 4: now, sort the list based on that no of days you stored earlier.

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

ApeRocket v2: Imminent Launch

Add an Orderer to a Running Raft-based Orderer Cluster

Seven steps to 100x faster

TickTick-ing The Boxes

The Key Framework I Followed To Learn Any New Technical Skill

Drawing of man sitting on stairway in space

Creating and deploying a Vapor (Swift) web app into Heroku cloud platform — Part (2/2)

PHP 8.1 support on violinist.io

VulnHub ( RickdiculouslyEasy)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Sukarna Sil

Sukarna Sil

More from Medium

Automatic/One-Tap SMS Verification with the Google’s SMS Retriever API/ SMS User Consent API (Part…

Build monitoring system — part 1

How to use the new built-in blocks for InterstitialAd in Sketchware Pro

How to Observe Network Connection Status