gh-38524: Sort #34892 doctest output vectors to fix randomness
Reported at
https://github.com/sagemath/sage/pull/38492#issuecomment-2295021400 by
@jhpalmieri and @GMS103. Added an extra test because why not.
URL: https://github.com/sagemath/sage/pull/38524
Reported by: grhkm21
Reviewer(s): Lorenz Panny