sort list(of string()) using a variable index into string() as key - vb.net

Posted by tullynyguy on Stack Overflow See other posts from Stack Overflow or by tullynyguy
Published on 2012-05-30T16:37:57Z Indexed on 2012/05/30 16:41 UTC
Read the original article Hit count: 110

Filed under:
|

I have a List(of String()). I have written a custom comparer (implements IComparer(of string)) to do an alphanumeric sort. Is there a way to sort the List using a given index to determine which position in the String() to sort by? In other words one time I might sort by Index = 0 and another time by Index = 3. The length of all String() in the list is the same. For reference this question is similar to Sort List<String[]> except I am using VB.net and that question is hardwired to Index=0.

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about sorting