fix sorting in getVideos method