Optimise resource import and sort resource list.

Resolves #14 and optimises the import of multiple resources.