Merge pull request #7075 from crobibero/sort

This commit is contained in:
Claus Vium 2021-12-31 16:32:26 +01:00 committed by GitHub
commit 1b9cb8cca6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}));
}