#19802: Fixing projections when no order is specified

Work Item: 19802

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros 2013-07-07 11:26:36 -07:00
parent 5abb9f38d0
commit 2595b1b67d

View File

@ -264,8 +264,9 @@ namespace Orchard.ContentManagement {
}
}
// no order clause was specified
if (firstSort) {
// no order clause was specified, use a default sort order, unless it's a count
// query hence it doesn't need one
if (firstSort && !count) {
sb.Append("order by Id");
}