<Firestore keeps on sorting on two fields, but I o...
# stackoverflow
u
Firestore keeps on sorting on two fields, but I only want to sort on one field I have a collection "records". A record is just a time set by a user when they clear a puzzle. Record has the fields: uid (id of the user who set the record) time (time taken to finish) type (either "memory" or "word" which are the two types of puzzles that a user can clear) I just want to sort the records by time to show a leaderboards screen. db.collection("records") .whereEqualTo("type", "memory") .orderBy("time", Query.Direction.ASCENDING) For some reason, the results are always...