mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-07-31 19:06:34 +08:00
#19802: Fixing projections when no order is specified
Work Item: 19802 --HG-- branch : 1.x
This commit is contained in:
parent
5abb9f38d0
commit
2595b1b67d
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user