Changed some null string checks to use String.IsNullOrEmpty()
Added a sorting class for EnvironmentVariables