Use orderByPriority filter provided by angularfire.