---
title: "Comment by Taylie Whitworth on \"React Native Integration with Firebase\" | Hashnode"
description: "This is great! Thank you! I was wondering if you knew how the new orderBy() in firebase worked? I&#39;m trying to get my array to print in descending order but"
url: "https://hashnode.com/posts/react-native-integration-with-firebase/62b98df23f3c29d73264fa0c/comment/62d0cc2e7055dcf04d0ed373"
---

[Discussion](https://hashnode.com/posts/react-native-integration-with-firebase/62b98df23f3c29d73264fa0c)

Comment [React Native Integration with Firebase](https://hashnode.com/posts/react-native-integration-with-firebase/62b98df23f3c29d73264fa0c)

[Taylie Whitworth](https://hashnode.com/@codewithtay)

[Jul 15, 2022](https://hashnode.com/posts/react-native-integration-with-firebase/62b98df23f3c29d73264fa0c/comment/62d0cc2e7055dcf04d0ed373)

This is great! Thank you! I was wondering if you knew how the new orderBy() in firebase worked? I'm trying to get my array to print in descending order but with the new version of firebase I'm not sure where to put orderBy(). Would love the help! Thanks!

[Ritik Prasad](https://hashnode.com/@Ritik5devs)

[Sep 12, 2022](https://hashnode.com/posts/react-native-integration-with-firebase/62b98df23f3c29d73264fa0c/comment/62d0cc2e7055dcf04d0ed373#reply-631eaeb23e8d6f3497ad843d)

firebase.database().ref('items/').orderByChild('letter').on('value', snapshot => { let items = snapshot.val() Object.values(items).map(i => console.log(i.number, i.letter, i.date)) })

like this you can use
