Contact selection without party_relationship module

Some time ago we added the contact on orders. This field allows to select any contact on the database and when using the party_relationship the contacts are sorted based on the distance between the parties.

We have some users that are not using the party_relationship module and for them all the contacts of the database are shown without any order. I’m wondering if we would have a simple sorting for this kind of users: “Contacts from same party shold shown first” and other contacts latter.

Toughts?

Indeed this is exactly the notion of distance that party_relationship introduce.
Maybe it could be doable to integrate part of it in the party module.

I filled Issue 10104: Basic distance calculation for parties - Tryton issue tracker which implements a basic distance calculation on party module by just returing a zero distance for the current party (and None for all others)