сортировка объекта по ключам: impVar = Object.keys(impVar).sort().reduce((a, c) => (a[c] = impVar[c], a),{});