'Sort dimensions given in argument using their str function.
This function will ensure that we get always the same tuple for a given
set of dimensions.'

@staticmethod
def sort_dims(dims):

    return tuple(sorted(dims, key=str))
