Dependency sorting: import/export from/to lists.