Before this PR there was no way to add a sort criteria to the partner suggestions. This commit introduce a registry of compare functions that can be arranged thanks to a sequence key. This way, it will be very easy to add custom sort criteria. part of task-3332872 closes odoo/odoo#128570 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>