displaying ACF Repeater Fields in Backend sorted by a subfield

Ho trovato il coniglio (I found the rabbit)! This sorts and synchronizes frontend and backwend (post edit view).

function my_acf_load_value( $value, $post_id, $field ) {
    
    // vars
    $order = array();
    
    // bail early if no value
    if( empty($value) ) {
        
        return $value;
    }
    
    // populate order
    foreach( $value as $i => $row ) {
        $order[ $i ] = $row['field_606af7xxxxxx']; // Ersetzen Sie 'field_XXXXX' durch den tatsächlichen Schlüssel des 'regie'-Feldes.
    }
    
    // multisort
    array_multisort( $order, SORT_ASC, $value ); // Ändern Sie SORT_DESC in SORT_ASC, wenn Sie aufsteigend sortieren möchten.
    
    // return   
    return $value;
}

add_filter('acf/load_value/name=bestfilm', 'my_acf_load_value', 10, 3); // Ändern Sie 'scores' in 'bestfilm'.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)