Change weight of CSS file loaded in custom module with #attached? Im working on a custom module which loads a CSS file: 

$content['#attached']['css'] = array(
  path_to_theme() . '/new.css',
);


How can I change the weight of the file so that its loaded after the other CSS files? I thought it would be something like this:

$content['#attached']['css'] = array(
  path_to_theme() . '/new.css',
  'weight' =&gt; 1000,
);


Or this: 

$content['#attached']['css'] = array(
  path_to_theme() . '/new.css',
  '#weight' =&gt; 1000,
);
You want something more like this:

$content['#attached']['css'] = array(
  array(
    'data' =&gt; path_to_theme() . '/new.css',
    'type' =&gt; 'file', 
    'weight' =&gt; 1000,
  ),
);