mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
#19847: Fixing queries with not sorting filter
Work Item: 19847 --HG-- branch : 1.x
This commit is contained in:
parent
6a48cf5f0e
commit
0249ded5d3
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user