resort the modules