I am creating a child theme for an existing theme. When setting up I noticed a few layout changes for the child theme cf the parent theme. Eventually I have worked out that this is due to the header pulling in the css files in a different order.

In the parent it goes:

1. pile of css files
2. theme styles.css

In the child them it goes:

1. theme styles.css
2. pile of css files
3. child styles.css

I want to get the order in the child them same, but just have the child one added on at the end,

In my child functions.php I have this.

```
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
    wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );

}

```

I have tried adding an large index to the end of the add\_action call but that just messes things up even more.

So, how can I get the files in the right order please