#19847: Fixing queries with not sorting filter

Work Item: 19847

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros 2013-07-16 10:22:45 -07:00
parent 6a48cf5f0e
commit 0249ded5d3

View File

@ -294,7 +294,7 @@ namespace Orchard.ContentManagement {
// 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");
sb.Append("order by civ.Id");
}
return sb.ToString();