By default WP sorts newest Posts at the top of search results.
I’m using WP Posts as a Members list for a sewing referral group. The search results need to be in order of seniority, so the oldest posts need to appear at the top of the search results—the opposite of the default sort order.
I also have a Custom Field for member numbers, so I could easily use that instead of the post date for search result order.
I'm using a child theme, have no problem adding code to the functions.php file. I am NOT a coder so don't know how to do this on my own.