In Memory Sorting EntityCollection

Posts   
 
    
BeauButton
User
Posts: 5
Joined: 13-Oct-2004
# Posted on: 29-Sep-2005 23:54:12   

How can i sort an EntityCollection (client side) on two fields?

The ApplySort only accepts a propertydescriptor for a single field, is there a way to sort of two fields, other than implementing my own sorting algorithm.

Thanks in advance.

-Beau

Paul.Lewis
User
Posts: 147
Joined: 22-Aug-2005
# Posted on: 30-Sep-2005 04:43:27   

The ** Best practises - How do I ... ?** page in the LLBLGen User Manual talks about this subject on the "sort a filled entity collection ?" page; Fourth list item from bottom.

The examples only show sorts on a single attribute, but you should be able to expand the sort to multiple columns.

Also, Check the docs at Using the Generated Code -> Adapter -> Using the entity collection classes "Client side sorting"

Good luck and happy sorting.

Paul