Hi Rudolf,

this problem already on my todo list and is caused by my "vCard optimizations" ...


consider the following vCard fragment:

C...
X-AIM;TYPE=WORK:AIM-ID
A...
IMPP;X-SERVICE-TYPE=AIM;TYPE=WORK:aim:AIM-ID
X...


in this case X-AIM and IMPP are two different attributes for the same data
and because you don't want to see the same value twice in the interface,
the X-AIM attribute is internally transformed to IMPP, and the result is:

C...
IMPP;X-SERVICE-TYPE=AIM;TYPE=WORK:aim:AIM-ID
A...
IMPP;X-SERVICE-TYPE=AIM;TYPE=WORK:aim:AIM-ID
X...

and then I use "sort | unique" (professional deformation from unix :-)) to remove duplicate
lines, so the result is:

A...
C...
IMPP;X-SERVICE-TYPE=AIM;TYPE=WORK:aim:AIM-ID
X...

... duplicate lines are "removed" but the side effect is that all other attributes are sorted :-)


Will fix ...


JM



On Sep 19, 2013, at 4:48 PM, Graf von Roit zu Hoya <graf.roit@gmail.com> wrote:

Hello,

i have a strange "sorting" problem within entities of address records. In my address records, i love to have telephon numbers ordered like this:

1) Mobile number
2) Office number
3) Office fax number
4) Number of assistant
...
and so on.

In this order i enter all the entities. Either in the contact app (iOS and OSX) or in CardDAVMate. In the Apple apps this sorting is persistent. In CardDAVMate, the behaviour is a little bit strange.

I enter the entities in the order i want, by changing the label of the entry appropriate. In the following example, i use the german names, as this may be the problem?

1) "Büro"
2) "Fax (Büro)"
3) "mobil"

After saving the new or changed contact, the entities are saved in the order i specified. I can see this in the iOS ans OSX apps. But in CardDAVMate, the contact refreshes and reorders the entities ON THE SCREEN like this:

1) "mobil"
2) "Fax (Büro)"
3) "Büro"

So well... In the iOS/OSX apps all is still ok. But now, when changing the contact again, whatever entry, and save the record, the order of the entities is changed to the order displayed on the screen (mobil, fax, ...)! In the iOS/OSX apps the order is changed too.

This is
annoying, because, if mobil is missing, the fax number is always on the first position. Is there any reason why the entities (labels?) are resorted?

Again, like always, thanx a lot for the great work you do on this software.

Regards,
Rudolf