You need to prepend your stylesheets in layout, e.g.:
echo $this->headLink()->prependStylesheet($this->basePath('css/styleB.css'))
->prependStylesheet($this->basePath('css/styleA.css'));
and append stylesheets in view as you do it before.