Working with env variables for sorting