def compareExecutionOrderAscending(module, otherModule):
 if (module.globalExecutionOrder < otherModule.globalExecutionOrder):
  return (-1)
 if (module.globalExecutionOrder > otherModule.globalExecutionOrder):
  return 1
 if (module.__name__ < otherModule.__name__):
  return (-1)
 return int((module.__name__ > otherModule.__name__))

def compareExecutionOrderAscending ( module , otherModule ) : if ( module . globalExecutionOrder < otherModule . globalExecutionOrder ) : return ( - 1 ) if ( module . globalExecutionOrder > otherModule . globalExecutionOrder ) : return 1 if ( module . __name__ < otherModule . __name__ ) : return ( - 1 ) return int ( ( module . __name__ > otherModule . __name__ ) )
get comparison in order to sort modules in ascending execution order .