Skip to content

Commit

Permalink
Support sorting on lower case for peoplelist
Browse files Browse the repository at this point in the history
  • Loading branch information
GordyD committed Apr 13, 2016
1 parent babeaa6 commit 86a8557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/peoplelist/peoplelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ var PeopleList = React.createClass({
var sortedPeople = _.sortBy(this.props.people, function(person) {
var patient = _.get(person, 'profile.patient', null);
return (patient && patient.isOtherPerson && patient.fullName) ?
patient.fullName : person.profile.fullName;
patient.fullName.toLowerCase() : person.profile.fullName.toLowerCase();
});

// then pop the logged-in user to the top if has data
Expand Down

0 comments on commit 86a8557

Please sign in to comment.