Devv Active Member Licensed User Longtime User Sep 6, 2016 #1 hi i have an array (1,3,2,4) and another array (banana , apple ,orange, strawberry) the two arrays are always the same length the first array after sort will be (1,2,3,4) i want the second to be (banana, orange, apple, strawberry) how could this be done ?
hi i have an array (1,3,2,4) and another array (banana , apple ,orange, strawberry) the two arrays are always the same length the first array after sort will be (1,2,3,4) i want the second to be (banana, orange, apple, strawberry) how could this be done ?
Erel B4X founder Staff member Licensed User Longtime User Sep 6, 2016 #2 Create a custom type: B4X: Type MyItem (Number As Int, Frut As String) Use a single List instead of the two arrays. Sort it with List.SortType. Upvote 0
Create a custom type: B4X: Type MyItem (Number As Int, Frut As String) Use a single List instead of the two arrays. Sort it with List.SortType.
Devv Active Member Licensed User Longtime User Sep 6, 2016 #3 Erel said: Create a custom type: B4X: Type MyItem (Number As Int, Frut As String) Use a single List instead of the two arrays. Sort it with List.SortType. Click to expand... thanks for fast replay i cant understand your solution please give a small example Upvote 0
Erel said: Create a custom type: B4X: Type MyItem (Number As Int, Frut As String) Use a single List instead of the two arrays. Sort it with List.SortType. Click to expand... thanks for fast replay i cant understand your solution please give a small example
LucaMs Expert Licensed User Longtime User Sep 6, 2016 #4 Devv said: please give a small example Click to expand... Today I struggled too much Upvote 0
Devv Active Member Licensed User Longtime User Sep 6, 2016 #5 LucaMs said: View attachment 47579 Today I struggled too much Click to expand... thanks for explaining bro Upvote 0
LucaMs said: View attachment 47579 Today I struggled too much Click to expand... thanks for explaining bro