AddressBook: make sort case insensitive.

Fixes #34.
master
Tom Hacohen 6 years ago
parent ad45ad3f83
commit aeca32afa8

@ -65,13 +65,7 @@ const sortSelector = createSelector(
const a = _a.fn; const a = _a.fn;
const b = _b.fn; const b = _b.fn;
if (a < b) { return a.localeCompare(b, undefined, {sensitivity: 'base'});
return -1;
} else if (a > b) {
return 1;
} else {
return 0;
}
}); });
} }
); );

Loading…
Cancel
Save