mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-05 21:37:10 -04:00
update sorting
This commit is contained in:
parent
cf35773d82
commit
66d0815fc6
@ -494,11 +494,6 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (!string.IsNullOrWhiteSpace(ForcedSortName))
|
|
||||||
{
|
|
||||||
return ForcedSortName;
|
|
||||||
}
|
|
||||||
|
|
||||||
return _sortName ?? (_sortName = CreateSortName());
|
return _sortName ?? (_sortName = CreateSortName());
|
||||||
}
|
}
|
||||||
set
|
set
|
||||||
@ -534,6 +529,11 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
/// <returns>System.String.</returns>
|
/// <returns>System.String.</returns>
|
||||||
protected virtual string CreateSortName()
|
protected virtual string CreateSortName()
|
||||||
{
|
{
|
||||||
|
if (!string.IsNullOrWhiteSpace(ForcedSortName))
|
||||||
|
{
|
||||||
|
return ModifySortChunks(ForcedSortName);
|
||||||
|
}
|
||||||
|
|
||||||
if (Name == null) return null; //some items may not have name filled in properly
|
if (Name == null) return null; //some items may not have name filled in properly
|
||||||
|
|
||||||
if (!EnableAlphaNumericSorting)
|
if (!EnableAlphaNumericSorting)
|
||||||
|
@ -79,7 +79,7 @@ namespace MediaBrowser.Server.Implementations.Persistence
|
|||||||
|
|
||||||
private IDbCommand _updateInheritedRatingCommand;
|
private IDbCommand _updateInheritedRatingCommand;
|
||||||
|
|
||||||
private const int LatestSchemaVersion = 50;
|
private const int LatestSchemaVersion = 51;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="SqliteItemRepository"/> class.
|
/// Initializes a new instance of the <see cref="SqliteItemRepository"/> class.
|
||||||
|
Loading…
Reference in New Issue
Block a user