in-memory sorting with 2 fields

Posts   
 
    
carlor
User
Posts: 34
Joined: 12-Jan-2005
# Posted on: 15-May-2006 17:17:59   

Hi there,

I have a collection that I need to sort based on a primary and secondary key. For example, I may need to sort a collection of books based first on the author as well as the publication date. I know that this is very easy to do using the GetMulti method however, I would like to sort the collection in memory to avoid another trip to the database. Is this possible? If so, could I get a snippet of sample code?

Thanks,

Carlo.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39928
Joined: 17-Aug-2003
# Posted on: 15-May-2006 17:55:05   

Implemented in v2, using entityview objects. V2 is in beta at the moment.

Frans Bouma | Lead developer LLBLGen Pro
carlor
User
Posts: 34
Joined: 12-Jan-2005
# Posted on: 15-May-2006 18:17:34   

Thanks.

Carlo.