mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#19802: Fixing projections when no order is specified
Work Item: 19802 --HG-- branch : 1.x
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user