RegisterPackage after RegisterScript

Hi,

I have a package that requires Google Map library. And I implemented it like this in the view.




<?php Yii::app()->clientScript->registerScriptFile('http://maps.googleapis.com/maps/api/js?sensor=false&language=' . Yii::app()->language . '&region='.Yii::app()->language, CClientScript::POS_HEAD); ?>

<?php Yii::app()->clientScript->registerPackage('somelibrary'); ?>



But in the output, the package is always placed above the google maps.




<script type="text/javascript" src="/project/assets/74e60422/somelibrary.js"></script>

<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false&amp;language=id&amp;region=id"></script>



Is there any solution to make the google maps library as the package dependency? Or, at least, how to place the ‘somelibrary’ package right after the google maps (not far below).?

PS:

I also posted here http://stackoverflow.com/questions/8904761/registerpackage-depends-on-registerscriptfile :)