Pedro Caldeira Active Member Licensed User Longtime User Jan 19, 2023 #1 Hello there, I have a map that holds in its keys a Maintenace task reference, and the value is a distance in meters to the location of that task. how can I sort the data from far to close and vice versa. Any ideas ? thanks
Hello there, I have a map that holds in its keys a Maintenace task reference, and the value is a distance in meters to the location of that task. how can I sort the data from far to close and vice versa. Any ideas ? thanks
Erel B4X founder Staff member Licensed User Longtime User Jan 19, 2023 #2 Don't use a map. Create a custom type with the two fields. Add the items to a list and sort it with List.SortType. Upvote 0
Don't use a map. Create a custom type with the two fields. Add the items to a list and sort it with List.SortType.
Pedro Caldeira Active Member Licensed User Longtime User Jan 19, 2023 #3 Erel said: Don't use a map. Create a custom type with the two fields. Add the items to a list and sort it with List.SortType. Click to expand... Going to give it a shot. Thanks Upvote 0
Erel said: Don't use a map. Create a custom type with the two fields. Add the items to a list and sort it with List.SortType. Click to expand... Going to give it a shot. Thanks