mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
#19847: Fixing queries with not sorting filter
Work Item: 19847 --HG-- branch : 1.x
This commit is contained in:
@@ -294,7 +294,7 @@ namespace Orchard.ContentManagement {
|
|||||||
// no order clause was specified, use a default sort order, unless it's a count
|
// no order clause was specified, use a default sort order, unless it's a count
|
||||||
// query hence it doesn't need one
|
// query hence it doesn't need one
|
||||||
if (firstSort && !count) {
|
if (firstSort && !count) {
|
||||||
sb.Append("order by Id");
|
sb.Append("order by civ.Id");
|
||||||
}
|
}
|
||||||
|
|
||||||
return sb.ToString();
|
return sb.ToString();
|
||||||
|
|||||||
Reference in New Issue
Block a user