info function: don't rely on dict order in doctest

As in a96f60fcb8, the hash() of a str object is randomized every time
the Python >= 3.3 interpreter is started. It's no longer possible to
depend on the order of str keys in a dict, so sort the data by length
and then by sequence name before printing it.