> Also method examples are run in order sorted by method name, not source order.
Hi, do you deem acceptable to remove the sort done in go.doc.Examples() ?
After all, the order is not specified in the documentation.
Sorted by name is probably correct most of the time. However, it's not in this case. I
would suggest adding a new field
Order int // original source order
to the Example struct and let cmd/go sort by that.
The sorting is done in package example. That can be used for things besides generating
tests. I don't want to remove the "sorted order" guarantee that it currently makes. I
just want to make it possible to reconstruct the original order.