SEARCH QUERY PLEASE HELP | call_user_func_array() expects parameter 1 to be a valid callback php

You have extra spaces around change_posts_order, inside the quotes:

add_action( 'pre_get_posts', ' change_posts_order ' );

PHP can’t find a function with that name, because wits looking for that function preceded with the spaces. Remove the spaces to fix the issue:

add_action( 'pre_get_posts', 'change_posts_order' );