What is the difference between uvm_config_db and uvm_resource_db?

In reply to Sagar Shah:

Your code appears to be working correctly. ‘my_test’ is above ‘my_env’. Also, his suggestion was to NOT use the resource_db.

From the file resource.svh:

// Multiple resources that have the same name are stored in a queue.
// Each resource is pushed into a queue with the first one at the front
// of the queue and each subsequent one behind it. The same happens for
// multiple resources that have the same type. The resource queues are
// searched front to back, so those placed earlier in the queue have
// precedence over those placed later.