def ispermutation2(s1, s2):
    if sorted(s1) == sorted(s2):
        return True
    else:
        return False
>>> ispermutation2('231', '123')
dataset/ETHPy150Open bt3gl/Python-and-Algorithms-and-Data-Structures/src/builtin_structures/permutations.py/ispermutation2