def sortLoopsInOrderOfArea(isDescending, loops):
 loops.sort(key=euclidean.getAreaLoopAbsolute, reverse=isDescending)

def sortLoopsInOrderOfArea ( isDescending , loops ) : loops . sort ( key = euclidean . getAreaLoopAbsolute , reverse = isDescending )
sort the loops in the order of area according isdescending .