How to enqueue scripts in order of Head section

You can dequeue the parent theme’s styles, and then enqueue all the styles in any order you’d require. This is how you can do it:

function remove_parent_styles() {
    wp_dequeue_style( 'sample' );
    wp_deregister_style( 'sample' );

    // Now enqueue your styles and scripts in the order you wish.
    // Just add all of them one after another.
}
add_action( 'wp_enqueue_scripts', 'remove_parent_styles', 999 );

We also increased the priority to make sure out hook runs after the theme’s styles are queued.