sorting collection

Posts   
 
    
Noer
User
Posts: 33
Joined: 04-Jan-2007
# Posted on: 01-May-2007 11:18:19   

Hi,

I have a DispatchCollection I want to sort using Dispatch relations, is that possible? I know I can do DispatchCollection.Sort(.....) but that is not enough. I tried to use DispatchCollection.SortClauses but that didn't sort anything. The problem is that I need to make the sort after GetMulti.

jmeckley
User
Posts: 403
Joined: 05-Jul-2006
# Posted on: 01-May-2007 14:32:40   

if you do the sort after fetching, this is concidered client side sorting. As opposed to server side sorting (db).

I think you need to create an EntityView of your collection and sort the view (not the actual collection). This, I believe, is how the LLBLDataSource controls (asp.net) sort if client side sorting is specified.