def _CompareTasksByEta(a, b):
 if (a.eta_usec() > b.eta_usec()):
  return 1
 if (a.eta_usec() < b.eta_usec()):
  return (-1)
 return 0

def _CompareTasksByEta ( a , b ) : if ( a . eta_usec ( ) > b . eta_usec ( ) ) : return 1 if ( a . eta_usec ( ) < b . eta_usec ( ) ) : return ( - 1 ) return 0
python sort comparator for tasks by estimated time of arrival .