﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
20644	Relation editor: Sorting of route relation never stops under certain conditions (gaps).	skyper	team	"This is a follow up of #19633 and #6166, see [/ticket/6166#comment:11 my comment 11].

==== What steps will reproduce the problem?
1. Have a completely mapped route relation with multiple gaps, see [attachment:ticket:6166:route_with_dual_carriage_on_several_end.osm.xz example file]
1. Open relation editor
1. Sort relation
1. Sort relation
1. Sort relation
1. ''and so one''

==== What is the expected result?
Sorting stops once there is no further improvement, which should be after the first full sort of all members

==== What happens instead?
Sorting never ends and all members all always flipped upside down.
 
==== Please provide any additional information below. Attach a screenshot if possible.
Maybe, this is a side effect of #20605, because the displayed connectivity is also wrong and non-existing gaps are displayed and jumped to.

{{{
Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2021-03-21 23:33:16 +0100 (Sun, 21 Mar 2021)
Revision:17634
Build-Date:2021-03-22 02:30:57
URL:https://josm.openstreetmap.de/svn/trunk
}}}
"	defect	new	normal		Core			template_report relation sort route	
