标签: javascript html firebase firebase-realtime-database
您好,我想按最喜欢的方式对项目进行排序,但是当我使用.orderByChild('likes')时;就像
.orderByChild('likes')
1 post 0 likes 2 post 5 likes 3 post 10 likes
我想成为
1 post 10 likes 2 post 5 likes 3 post 0 likes
有人可以帮我吗