Tutorial: Key order

Step by stepTips and Tricks Key order

key order

Key order used for queries (startAt, endAt, equalTo and limit) are :

  • keys that can be converted to integer come first, in their natural order
  • other keys come after, in lexicographic order