Fix orderby query

This commit is contained in:
Cody Robibero 2021-12-31 08:03:08 -07:00
parent dc9e1ece29
commit c3071f8996

View File

@ -3016,8 +3016,8 @@ namespace Emby.Server.Implementations.Data
return " ORDER BY " + string.Join(',', orderBy.Select(i =>
{
var columnMap = MapOrderByField(i.OrderBy, query);
return columnMap.SortBy + " " + columnMap.SortOrder;
var sortOrder = columnMap.SortOrder == SortOrder.Ascending ? "ASC" : "DESC";
return columnMap.SortBy + " " + sortOrder;
}));
}