(self, ex)
return (ex.src.size(2), ex.src.size(1))
Sort using the size of the image: (width, height).
Sort using the size of the image: (width, height).
Sort using the size of the image : ( width height ) .
def sort_key(self, ex):
        """ Sort using the size of the image: (width, height)."""
        return (ex.src.size(2), ex.src.size(1))
def sort_key ( self , ex ) : return ( ex . src . size ( 2 ) , ex . src . size ( 1 ) )