[javascript] Sort JavaScript object by key