WordPress’s function ‘get_posts’ and sorting for category

I have a category page on it posts are displayed. By default, wordpress outputs posts as they enter the category and displays them.
If I have tittle of the post consist of 2 words, and I need to sort by the second word (Name / Surname, I need a surname), it can be done somehow without reloading the post and not changing the name and surname? or smth else ?
i know that function get_posts has attribute ‘order’ and ‘orderby’ it’s not what i need.

Read more here: WordPress’s function ‘get_posts’ and sorting for category

Leave a Reply

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