[COOK-3312] Sort environment variables

Signed-off-by: Seth Vargo <sethvargo@gmail.com>