Skip to content

Commit

Permalink
Added sorting by grouping as first order by to fix grouping.
Browse files Browse the repository at this point in the history
  • Loading branch information
Clancey committed Mar 26, 2012
1 parent ed7493b commit ab6ccfd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -2,4 +2,5 @@
*.mdb
[Bb]in
[Dd]ebug*/
obj/
obj/
*userprefs
3 changes: 2 additions & 1 deletion MonoTouch.SQLite/SQLiteTableModel.cs
Expand Up @@ -255,7 +255,8 @@ public SQLiteTableModel (SQLiteConnection sqlitedb, int pageSize, SQLiteOrderBy
SectionExpression = sectionExpr;
Connection = sqlitedb;
PageSize = pageSize;

if(!string.IsNullOrEmpty(sectionExpr))
OrderBy.Add(new SQLiteOrderBy(sectionExpr,SQLiteSortOrder.Ascending));
if (orderBy != null)
OrderBy.Add (orderBy);

Expand Down

0 comments on commit ab6ccfd

Please sign in to comment.