I need to sort the data in descending order based on the timestamp and keys(which are autogenerated by firebase).
I tried the answer given in the question. But it throws an error that endAt() takes only one parameter.
How should i pass two parameters in the method.