get collection in ascending order firestore
var db = firebase.firestore();
db.collection('form')
.orderBy('id', 'asc') // optional
.onSnapshot((snapshot) => {
snapshot.docs.map((doc) => {
// console.log(doc.data());
let data = doc.data();
}});