sorted the lists