sorted dict printing - better doctests