Fix provider sorting