Update functions.php

order by time fixed