Skip to content

Commit

Permalink
[FIX] Directory users email sort button (#16606)
Browse files Browse the repository at this point in the history
Co-authored-by: Guilherme Gazzo <guilhermegazzo@gmail.com>
  • Loading branch information
ashwaniYDV and ggazzo authored Apr 14, 2020
1 parent 057ba18 commit a05a2d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/methods/browseChannels.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const sortUsers = function(field, direction) {
case 'email':
return {
'emails.address': direction === 'asc' ? 1 : -1,
username: direction === 'asc' ? 1 : -1,
};
default:
return {
Expand Down

0 comments on commit a05a2d5

Please sign in to comment.