Add the cell to the top

I am using Firebase. I store data in it and retreive in table view controller. But when I added a data, it is at the bottom, I want it to b on the top. Can anyone please tell me whih code I need? Thank you very much.

I don’t use Firebase, but how do you add to the table ? Probably there is an append method (to put at the end) and an insert to put where you want.


or you could also probably build the data source array and then sort it.

Add the cell to the top
 
 
Q