By default the results in PlayTube are sorted by oldest. In order to sort the results by newest, we need to make a small core modification. This isn’t tested with the latest version of PlayTube as I am still on the 1.4.3 version, but the modification is simple, just change ASC to DESC.

Find in /sources/search/content.php

Replace with

Thats it, now your search results are setup to show the latest videos under that search query. Don’t forget to setup Site Search on Google Analytics.

You May Also Like

PlayTube Progressive Web Application

Leave a Reply

Your email address will not be published. Required fields are marked *