Order By Descending : Order « LINQ « VB.Net






Order By Descending

  

Imports System
Imports System.IO
Imports System.Reflection
Imports System.Linq
Imports System.Xml.Linq

Public Class MainClass
   Public Shared Sub Main
        Dim doubles = New Double() {1.7, 2.3, 1.9, 4.1, 2.9}

        Dim sortedDoubles = From dbl In doubles _
                            Order By dbl Descending

        Console.WriteLine("The doubles from highest to lowest:")
        For Each d In sortedDoubles
            Console.WriteLine(d)
        Next

   End Sub


End Class

   
    
  








Related examples in the same category

1.Order all the cars by PetName
2.Order by two properties
3.Two order By clauses
4.Define the reverse order query
5.Compound Order By: Descending then Ascending
6.Compound Order By (two conditions)
7.Compound Order By Ascending then Descending
8.Reverse Ordering