bitfield/gotestdox

Sort output alphabetically

thiagonache opened this issue · 2 comments

Hi there,

I'd like to see the output of gotestdox ordered alphabetically without losing the beautiful colors in the output. Could you make it default via code so I can stop using | sort, please?
If you don't want to have to buffer the output to make sort possible by default, an argument would be good enough.

I'd like this too. The reason I didn't do it originally was that I wanted to be able to print test results as they come in, rather than waiting until they're all complete and then printing the sorted list.

But, to be honest, I think sorting is more important than result streaming. Let's do it!

(If we sort results per-package, we can also be more intelligent about grouping those results by package.)