Reorder a List Of String
Posted on 2012-03-20
I have a list of String in Vb.NET with some elements.
My problem is that all the strings that contains "Total" are always at the end and since I build an excel spreadsheet with that list my totals are at the end and they should be somewhere at the begening....
How could I re-order my List(Of String) so that elements that contains "Total" would need to be "Cut and paste' at let's say Index 3 ??
lets say there is 3 string with total and the first one is at index 10 .. well all those 9 would need to be at index 3,4 and 5 and all the other strings would need to modify their index so everything is fine in the list
is this possible.. ?