Align object key order with reference object recursively.
Install with npm:
$ npm install --save object-align
const objectAlign = require('object-align');
const obj = { k1: 1, k2: 2 };
const ref = { k2: null, k1: null };
objectAlign(obj, ref);
// obj => { k2: 1, k1: 2 }