Sorting submodules