yiisoft/yii — pull request #2263 by muayyad-alsadi (2013-03-26 14:50:04+00:00)
Title: allow specifying order (append, prepend, number) when registering css/js 

sometimes you need to force prepend when registering some CSS/JS
specially in layouts but you can't control the order of calling registerScript because
they was called in the view because reaching the layout

http://stackoverflow.com/questions/11651861/forcing-script-order-from-registerscript-method-in-yii