Array-sort comparator ordering objects alphabetically by their name field.
name
Any object exposing a string name.
First element.
Second element.
Negative if a.name sorts before b.name, positive if after, 0 if equal.
a.name
b.name
0
Array-sort comparator ordering objects alphabetically by their
namefield.