org-contacts: Provide ordering when using cycle completion
commitd3fb1812fac75a81b406a028ef0098e3a2ef095b
authorØyvind Stegard <oyvind.stegard@ifi.uio.no>
Mon, 10 Jun 2013 09:08:56 +0000 (10 11:08 +0200)
committerGrégoire Jadi <gregoire.jadi@gmail.com>
Tue, 11 Jun 2013 18:43:19 +0000 (11 20:43 +0200)
treedb97f9512a01246a4e6d1f1f153dca22422d64c7
parent1a8ad7dab13891a5f0e72656b637ebc30edbe2c0
org-contacts: Provide ordering when using cycle completion

* contrib/lisp/org-contacts.el (org-contacts-metadata-prefix):
Provide same function for cycle ordering as is used for display ordering
in completion metadata.

When using cycle completion style for contacts, by setting
`completion-cycle-threshold' to some value, the ordering was not consistent
with order of email addresses in contact definition, nor the order
which was used for regular display completion. Fix that by also
supplying sort function for cycle completion in metadata.
contrib/lisp/org-contacts.el