{
0
:
{associate_sales: "j72LOAjajLRbKKK0XYfHcCMghdB3", displayName: "Sneh", email: "[email protected]", timespan: 1, …}
1
:
{displayName: " Sales4", email: "[email protected]", timespan: 1, uid: "2e5piC6E8eO16qDDaP0qPA0LDRJ3", …}
2
:
{associate_sales: "c8kMXIkXcRgTUInPbdhL5oinbzv2", displayName: " client11", email: "[email protected]", timespan: 12, …}
3
:
{associate_sales: "j72LOAjajLRbKKK0XYfHcCMghdB3", displayName: "Client1", email: "[email protected]", timespan: 1522320931451, …} }
This is the response I fetch in console. how to fetch this result according to timespan asceding or descending order. I am using following method but its not working
this.databaseObj2.orderByChild('timespan').once('value', (snapshot) => {
// code
});
Please help. Thanx in advance.