Consistently list mixins before base classes

Most mixins will override functions of base classes and hence belong
before them.

Fixes #818