I'm new to JSON and I would like to create a (non-anonymous) function that defines the JSON object and the index name to sort by alphabetically. I only code straight-out JavaScript so frameworks don't help me in the least.
var people = [
{'name': 'a75','item1': false,'item2': false},
{'name': 'z32','item1': true,'item2': false},
{'name': 'e77','item1': false,'item2': false},
];