After some research (I'm not a php = / developer), the following seems to work:
The setOrder () method takes an array.
$ Collection-> setOrder (array ('attribute1', 'attribute2'), asc);
I'm not sure how anyone will want to use this, but I changed this line in Toolbar.php in the Catalog / Product / List / directory.
if ($this->getCurrentOrder()) { $this->_collection->setOrder(array($this->getCurrentOrder(), 'name'), $this->getCurrentDirection()); }
So, all my collections are sorted by current order (by default), and then hardcoded for the order by name subsequently. Still doing some tests on it, but it seems to work ......
source share