You are probably better off creating a Map for sorting those values. But you cannot have two values for the same key, so what you might do is make the "V" part of the Map a List; then use the 1, 2, 3 to get the Lists from the Map, and add the a b c to the Lists. You might need to put the keys into a List, sort them, and then use them to get the values; that way they will be in order. Remember an ordinary Map loses insertion order, but there are linked Maps which retain insertion order.
Every snowflake is perfect and unique. And every snowflake contains a very tiny ad.
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth