def compareLayerSequence(first, second):
 if (first.layerZoneIndex < second.layerZoneIndex):
  return (-1)
 if (first.layerZoneIndex > second.layerZoneIndex):
  return 1
 if (first.sequenceIndex < second.sequenceIndex):
  return (-1)
 return int((first.sequenceIndex > second.sequenceIndex))

def compareLayerSequence ( first , second ) : if ( first . layerZoneIndex < second . layerZoneIndex ) : return ( - 1 ) if ( first . layerZoneIndex > second . layerZoneIndex ) : return 1 if ( first . sequenceIndex < second . sequenceIndex ) : return ( - 1 ) return int ( ( first . sequenceIndex > second . sequenceIndex ) )
get comparison in order to sort skein panes in ascending order of layer zone index then sequence index .