Sort the modules