deeply alphabetize object keys
npm install alphabetize-object-keys



Deeply sort an object keys alphabetically. This will also iterate over array values to find deep objects and sort those without altering the value array indexes.
``
var alphabetize = require('alphabetize-object-keys');
var obj = {
some: 1,
unsorted: 2,
object: 3,
with: {
deep: 1,
and: [{
complex: 1,
values: 2,
and: 3,
keys: 4
},{
even: 1,
more: 2,
keys: 3
}]
}
};
var sorted = alphabetize(obj);
``
sorted is now:``
{
"object": 3,
"some": 1,
"unsorted": 2,
"with": {
"and": [
{
"and": 3,
"complex": 1,
"keys": 4,
"values": 2
},
{
"even": 1,
"keys": 3,
"more": 2
}
],
"deep": 1
}
}