Fixed sorting with priority by using AngularFire orderByPriority.