|
@@ -120,7 +120,7 @@ namespace GxPress.Repository.Implement.Collection
|
|
|
if (!string.IsNullOrEmpty(request.SearchKey))
|
|
|
sql += $@" AND(b.Title LIKE '%{request.SearchKey}%' OR a.FolderName LIKE '%{request.SearchKey}%')";
|
|
|
sql +=
|
|
|
- $@" ORDER BY a.AttributeValue desc,a.IsTop DESC, a.LastModifiedDate DESC,a.Sort desc";
|
|
|
+ $@" ORDER BY a.AttributeValue desc,a.IsTop DESC,a.Sort,a.LastModifiedDate DESC desc";
|
|
|
if (request.Page > 0)
|
|
|
sql += $" LIMIT {(request.Page - 1) * request.PerPage},{request.PerPage}";
|
|
|
}
|
|
@@ -141,7 +141,7 @@ namespace GxPress.Repository.Implement.Collection
|
|
|
}
|
|
|
else
|
|
|
sql += $" and a.ParentId={request.FolderId}";
|
|
|
- sql += $@" ORDER BY a.AttributeValue desc,a.IsTop DESC, a.LastModifiedDate DESC,a.Sort desc";
|
|
|
+ sql += $@" ORDER BY a.AttributeValue desc,a.IsTop DESC,a.Sort DESC,a.LastModifiedDate desc";
|
|
|
if (request.Page > 0)
|
|
|
sql += $" LIMIT {(request.Page - 1) * request.PerPage},{request.PerPage}";
|
|
|
}
|