mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Merge pull request #13145 from SenorSmartyPants/RemoteImageSorting
Round RemoteImage CommunityRating to nearest tenths when sorting
This commit is contained in:
commit
eea80e5735
@ -50,7 +50,7 @@ namespace MediaBrowser.Model.Extensions
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
})
|
})
|
||||||
.ThenByDescending(i => i.CommunityRating ?? 0)
|
.ThenByDescending(i => Math.Round(i.CommunityRating ?? 0, 1) )
|
||||||
.ThenByDescending(i => i.VoteCount ?? 0);
|
.ThenByDescending(i => i.VoteCount ?? 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user