IDEX-1414 sort environments in tree