I have a multiple lists like this,
[100,200,100,1,ASD1]
[200,350,150,2,ASD2]
[300,400,120,3,ASD1]
[400,500,130,4,ASD2]
And I want to join the lists based on the last value of the list.
[[100,200,100,1,ASD1],[300,400,120,3,ASD1]]
[[200,350,150,2,ASD2],[400,500,130,4,ASD2]]
How to join the lists like this.If anyone knows pls help me.