Python membandingkan daftar yang tidak dipesan

def compare(s, t):
    return sorted(s) == sorted(t)
Anxious Axolotl