Sort a List(Of Tuple)
.net, linq, list, tuples, vb.net
Solution
var sortedItems = list.OrderBy(t => t.Item3);
Problem
I have a list like this: ``` Dim Results_List As New List(Of Tuple(Of String, String, Long)) ``` With those contents: ``` (B, a, 5000) (G, a, 1000) (B, b, 8000) (G, b, 2000) ``` Can I use LINQ (or whateverelse but not using a slow FOR) to sort the items by the Long numbers in ascending mode as this?: ``` (G, a, 1000) (G, b, 2000) (B, a, 5000) (B, b, 8000) ```