sort listdir doctest