orderBy property
The field to use to sort the data. Give the same value as the field used to order the data in the query.
Example
If the query is:
FirebaseDatabase.instance.ref('messages').orderByChild('createdAt')
Then the value of orderBy should be createdAt
.
If null, the data will be sorted by the key.
Implementation
final String? orderBy;