Before this commit, when two users shared the same mail, they were ordered by alphabetical order. This commit makes sure that the internal user is preferred. closes odoo/odoo#84805 X-original-commit: 992b7a00f8eb567aed730420d0d10fa476fb9dd7 Signed-off-by: Thibault Francois <tfr@odoo.com> Signed-off-by: Arnaud Joset <arj@odoo.com>