fix doctest failures from changed sort key