Fixed sorting provider results by quality code, was causing a error.