Modify

Opened 7 months ago

#24257 new defect

Memberships Conflict Dialog values are sorted ASCII-betically

Reported by: anonymous Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: Cc:

Description

In this screen

https://josm.openstreetmap.de/wiki/Help/Action/CombineWay#TagsMembershipsConflictDialog

when combining two address nodes with conflicting values of addr:housenumber, a value of 100 and 104 will be sorted like this in the dropdown (which is correct)

  1. 100
  2. 104

but a value of 100 and 96, will be sorted like this (which is incorrect, 96 is not greater than 100)

  1. 100
  2. 96

This is because they're sorted naively as text strings. The number part should be sorted as a number

https://blog.codinghorror.com/sorting-for-humans-natural-sort-order/

Attachments (0)

Change History (0)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to anonymous.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.