You can do using
fetchResults(){
db.collection('data')
.orderBy("id", "asc")
.onSnapshot((querySnapShot)=>{
// Do something
})
}
More information visit https://firebase.google.com/docs/firestore/query-data/order-limit-data and you can also apply filter using click on click on filter icon