osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.66k stars 1.02k forks source link

Change sorting for groups of waypoints gpx from last used to usual ordering #20856

Open mariush444 opened 1 month ago

mariush444 commented 1 month ago

Description

It seems that sorting gruops of waypoint is wrong (not always the same).

Points in opend track are sorted OK. Alphabetically

Gruops to show on map are sorted OK. Alphabetically

but ... when you edit a waypoint in track then "select group" is sorted "some how - not alphabetically"

the same when you tap "list" button. It is sorted "some how - not alphabetically" (w2)

Steps to reproduce

as above

example of gpx is attatched gpx.zip

Actual result

Sorting is not the same in every screen

Expected result

Sorting should be always the same. by me, prefered alphabetically

Your Environment (required)

4.5.10 & 4.8.6

yuriiurshuliak commented 1 month ago

The issue has been reproduced. To reproduce it, import the provided track (SAU-iO-240904.gpx), then open the track menu and navigate to Points. You'll notice the waypoints are sorted alphabetically.

Next, select any waypoint on the map, tap it, choose Actions, and then select Edit GPX waypoint. In the group selection tab, you will see that the groups are displayed in a random order.

OsmAnd~ 4.9.0#3203m, released: 2024-09-17

Alphabetical sorting Alphabetical sorting Chaotic sorting Chaotic sorting
vshcherb commented 1 month ago

On these screens "last used" is used, so it works as intented.

mariush444 commented 1 month ago

Can user use alphabetical as on other screens? it is more readable and uniform

vshcherb commented 1 month ago

Nope, categories are done on these screens so it's easy to access to last used. However we will double check the relevance

mariush444 commented 1 month ago

Yes, please reconsider it Even at the 1st modofication the list is not sorted (is unsorted at all)

vshcherb commented 1 month ago

3rd screen will be replaced with new one and proper sorting, horizontal screen is sorted by usage for easy adding to last used group