refactor: [UEPR-116] removed video ordering

This commit is contained in:
MiroslavDionisiev 2024-12-04 13:30:59 +02:00
parent c9405ffafb
commit 8d205d6ff3

View file

@ -41,11 +41,6 @@ export const YoutubePlaylistItem = ({playlistRequestUri, playlistTitleId, onSele
) : (
<section className="playlist-videos">
{playlistVideos
.sort(
(firstVideo, secondVideo) =>
new Date(firstVideo.publishedAt).getTime() <
new Date(secondVideo.publishedAt).getTime()
)
.map(video => (
<YoutubeVideoButton
key={video.videoId}