def compareAreaAscending(loopArea, otherLoopArea):
 if (loopArea.area < otherLoopArea.area):
  return (-1)
 return int((loopArea.area > otherLoopArea.area))

def compareAreaAscending ( loopArea , otherLoopArea ) : if ( loopArea . area < otherLoopArea . area ) : return ( - 1 ) return int ( ( loopArea . area > otherLoopArea . area ) )
get comparison in order to sort loop areas in ascending order of area .