mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-13 12:33:01 +03:00
Fix orderby query
This commit is contained in:
@@ -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;
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user