Allow WP users to sort search result on a videos site

Solved by a dropdown –

    <h1 class="titlebar"><div id="sortby"> SORT BY:; 

Sort by
Newest
Oldest
Most Viewed
Relevance
Duration

error code: 521