fix sort function and add NodeModule.sortModuleListByDependencyOrder