Ticket #1462 (closed defect: fixed)
Sort tags list when selecting an object
|Reported by:||LonelyPixel||Owned by:||cbro@…|
One of the most annoying things to me in Merkaartor is that when I select two objects (one after another) to compare their tags, they always are in a different order. It's hard to tell quickly whether they have the same tags and values assigned. The only solution to this is to sort the tags in the list. This is what my patch does. It may not be the most efficient sorting algorithm, in fact it's the first I was thinking of, to sort the items in-place. It is working fine for me, I could not determine any data corruption in a small test and it doesn't lead to a sensible delay. (How could that be for a list of < 10 items...)
Maybe this could be improved by applying a certain pre-defined order different from the lexical. For example: highway < service < name < maxspeed < * < note < created_by. That would be more of an order by importance first, then tag name.