sorting submodules