Use isinstance in place of type()
Sort Registry.find results