.net - Sort a List(Of Tuple) -


i have list this:

dim results_list new list(of tuple(of string, string, long)) 

with contents:

(b, a, 5000) (g, a, 1000) (b, b, 8000) (g, b, 2000) 

can use linq (or whateverelse not using slow for) sort items long numbers in ascending mode this?:

(g, a, 1000) (g, b, 2000) (b, a, 5000) (b, b, 8000) 

var sorteditems = list.orderby(t => t.item3); 

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -