The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

Home > @firebase/database > orderByPriority

orderByPriority() function

Creates a new QueryConstraint that orders by priority.

Applications need not use priority but can order collections by ordinary properties (see Sort data for alternatives to priority.

Signature:

export declare function orderByPriority(): QueryConstraint;

Returns:

QueryConstraint