Posts 2 Posts: query connected — orderby problem

So, now I’ve decided to sort in php:

function compare_collections( $c1, $c2 ) { 
  if( $c1->menu_order == $c2->menu_order ) { 
    return ( $c1->post_title < $c2->post_title ) ? -1 : 1;
  } else {
    return ( $c1->menu_order < $c2->menu_order ) ? -1 : 1;
  }
}

// and then in my template:
uasort( $colls->posts, 'compare_collections' ) ;

But I would be glad to understand what’s wrong 🙂

My guess is that p2p_type( )->get_connected‘s sorting preferences are stronger or like that. Excuse me, I am not a programmer 🙂

error code: 523