<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/database](./database.md) &gt; [DataSnapshot](./database.datasnapshot.md) &gt; [priority](./database.datasnapshot.priority.md)

## DataSnapshot.priority property

Gets the priority value of the data in this `DataSnapshot`<!-- -->.

Applications need not use priority but can order collections by ordinary properties (see [Sorting and filtering data](https://firebase.google.com/docs/database/web/lists-of-data#sorting_and_filtering_data) ).

<b>Signature:</b>

```typescript
get priority(): string | number | null;
```
