CodeSmith Community
Your Code. Your Way. Faster!

Sorting a TList in descending order

rated by 0 users
This post has 2 Replies | 1 Follower

Top 50 Contributor
Posts 75
Points 2,055
sujithukvl@gmail.com Posted: 06-11-2008 3:21 AM

 

Private ProductUnit As New ProductUnit

Private ProductUnits As TList(Of ProductUnit)

ProductUnits = UnitProvider.GetAll()

 
Now i want to sort the ProductUnits collection in descending order of the property  ProductUnitId.

 
I tried this ProductUnits.Sort("ProductUnitId DESE")

 but it failed

What can i  do?

 

  • Filed under:
  • | Post Points: 35
Top 10 Contributor
Posts 925
Points 35,375

 try DESC rather than DESE

hth

swin 

------------------------------------------------- Member of the .NetTiers team -------------------------------------------------
  • | Post Points: 55
Top 50 Contributor
Posts 75
Points 2,055

 thanks ;

it worked well :)

  • | Post Points: 5
Page 1 of 1 (3 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems