pkg: sort input packages in a consistent order when generating
This resolves a minor quirk where adding pkg/encoding/toml
would initially put it at the very end of the register.go import list.
It could be fixed by a second run of `go generate`, but it's also easy
to fix the generator so that it doesn't have this quirk.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I2798ed976918587c6c276f438f9dec6a87c1a9e3
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1201473
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>