Use Class<?> as Map key for resources and types.  Sort resources and
types by class's simple name