@@ -59,11 +59,11 @@ public TemplateQueryController(UmbracoContext umbracoContext)
59
59
60
60
private static readonly IEnumerable < PropertyModel > _properties = new List < PropertyModel > ( )
61
61
{
62
- new PropertyModel ( ) { Name = "Id" , Alias = "id " , Type = "int" } ,
63
- new PropertyModel ( ) { Name = "Name" , Alias = "name " , Type = "string" } ,
62
+ new PropertyModel ( ) { Name = "Id" , Alias = "Id " , Type = "int" } ,
63
+ new PropertyModel ( ) { Name = "Name" , Alias = "Name " , Type = "string" } ,
64
64
//new PropertyModel() { Name = "Url", Alias = "url", Type = "string" },
65
- new PropertyModel ( ) { Name = "Creation Date" , Alias = "createDate " , Type = "datetime" } ,
66
- new PropertyModel ( ) { Name = "Publishing Date" , Alias = "publishDate " , Type = "datetime" }
65
+ new PropertyModel ( ) { Name = "Created Date" , Alias = "CreateDate " , Type = "datetime" } ,
66
+ new PropertyModel ( ) { Name = "Last Updated Date" , Alias = "UpdateDate " , Type = "datetime" }
67
67
68
68
} ;
69
69
@@ -82,7 +82,6 @@ public QueryResultModel PostTemplateQuery(QueryModel model)
82
82
timer . Start ( ) ;
83
83
84
84
var currentPage = umbraco . TypedContentAtRoot ( ) . FirstOrDefault ( ) ;
85
-
86
85
timer . Stop ( ) ;
87
86
88
87
@@ -201,7 +200,7 @@ public QueryResultModel PostTemplateQuery(QueryModel model)
201
200
202
201
var direction = model . Sort . Direction == "ascending" ? string . Empty : " desc" ;
203
202
204
- sb . AppendFormat ( ".OrderBy(\" {0}{1}\" )" , model . Sort . Property . Name , direction ) ;
203
+ sb . AppendFormat ( ".OrderBy(\" {0}{1}\" )" , model . Sort . Property . Alias , direction ) ;
205
204
}
206
205
207
206
if ( model . Take > 0 )
0 commit comments