flag: visit the flags in sorted order, for better messages. Fixes #1601. R=rsc CC=golang-dev https://golang.org/cl/4249070