sort css and js script arrays by key (this allow to set priorities)