Ordering a Firestore query with a filter

Ordering a Firestore query with a filter

Code sample

Go

query := cities.Where("population", ">", 2500000).OrderBy("population", firestore.Asc)

Node.js

citiesRef.where('population', '>', 2500000).orderBy('population');

Python

cities_ref = db.collection(u'cities')
query = cities_ref.where(
    u'population', u'>', 2500000).order_by(u'population')
results = query.stream()