Fix favorite sorting