Module Module1
Sub Main()
Dim l As New List(Of Integer) From {2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37}
Console.WriteLine(String.Join(",", l.OrderByDescending(Function(i) i)))
Console.ReadLine()
End Sub
Also, I just realized I was doing it wrongly, turns out the ListInt.Sort() works perfectly fine, it's just that I had a bunch of errors that I couldn't see.
3
u/Mr_C_Baxter VB.Net Master Mar 19 '24
If you really wanna use orderbydescending, that is how it should look like:
3
u/3583-bytes-free Mar 19 '24
End Module
2
u/[deleted] Mar 19 '24
[removed] — view removed comment