Sort Object Array By Key Value Javascript Formatter