sort inside the module