lazy-load the sort order to prevent hitting the DB in rake tasks

resolves #2342
#2329: remove app/admin from eager_load_paths
resource lookup should also search against resource_name
added spec for resource lookup by string name