LINQ in SQLite for Windows store app does not have 'ThenBy' to order by multiple columns
        Posted  
        
            by 
                user1131657
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by user1131657
        
        
        
        Published on 2013-10-24T10:47:15Z
        Indexed on 
            2013/10/27
            3:54 UTC
        
        
        Read the original article
        Hit count: 284
        
I have a Windows 8 store application and I'm using the latest version on SQLite for my database.
So I want to return some records from the database and I want to order them by more that one column. However SQLite doesn't seem to have the ThenBy statement? So my LINQ statement is below:
from i in connection.Table<MyTable>()
where i.Type == type 
orderby i.Usage_Counter
// ThenBy i.ID
select i);
So how do I sort by multiple columns in SQLite without doing another LINQ statement?
© Stack Overflow or respective owner