sort flags with the same name in a consistent order

Docker-DCO-1.1-Signed-off-by: Jonathan Boulle <jonathanboulle@gmail.com> (github: jonboulle)
Merge pull request #6713 from vieux/order_flag

sort flags with the same name in a consistent order