Fix doctest reflecting the sorting (issue #3)