U4-8833 The default sorting field for the member list view should be LoginName not Name

This commit is contained in:
Shannon
2016-08-09 15:30:43 +02:00
parent 2d25c4dad5
commit 2ee71ecb96

View File

@@ -333,10 +333,13 @@ namespace Umbraco.Core.Persistence.Repositories
sortedSql = new Sql(newSql, newArgs.ToArray());
sortedSql.OrderBy("CustomPropData.CustomPropVal");
if (orderDirection == Direction.Descending)
{
sortedSql.Append(" DESC");
sortedSql.OrderByDescending("CustomPropData.CustomPropVal");
}
else
{
sortedSql.OrderBy("CustomPropData.CustomPropVal");
}
}