diff --git a/ComApp/src/App/Views/ContactScreen.js b/ComApp/src/App/Views/ContactScreen.js index 3a94557..1a94349 100644 --- a/ComApp/src/App/Views/ContactScreen.js +++ b/ComApp/src/App/Views/ContactScreen.js @@ -126,9 +126,11 @@ class ContactScreen extends React.Component { transferContact() { /** @type {import('./../Models/User').User} */ - const nextUser = this.props.users.filter( - user => user.id !== this.props.currentUser.id, - )[this.state.selectedTransferUserIndex]; + const nextUser = this.props.users + .filter(user => user.id !== this.props.currentUser.id) + .sort(Helpers.compareValues('email', 'asc'))[ + this.state.selectedTransferUserIndex + ]; /** @type {import('./../Models/Contact').ContactData} cloned contact */ const transferContact = this.state.contactToTransfer.toJSON(); if (transferContact === null) {