How to Order Youtube API results

Hello,

I have a page which displays the videos from a channel. I have a search box which filters the videos displayed based on the input. However, the videos are always sorted in reverse order if I use order=relevance

https://www.googleapis.com/youtube/v3/search?key={APKI KEY}&channelId=UC-fR7d7Z2HheSUqFxzTq6Ow&order=relevance&part=snippet&type=video&maxResults=50

I tried changing this to order=date which gives me the newest videos first but at the expense of search not working so well. With order=relevance search works with any matching text but order=date only seems to work with video title.

So, my question is, is it possible to have order=relevance AND sort the display order so newest video is first?

Cheers,
Brian

Community Page
Last updated: