sort modules before importing them

reason: This ensures that modules are always imported in the same
order. It was dependent of the file system you used, e.g. the module
list order was not the same if you used xfs or nfs.