simplify the provider comparison function a bit

Authored by sandsmark on May 12 2019, 9:10 AM.