Besides company-statics, you can also write functions to do the sorting yourself, and then you add the function to the variable `company-transformers`. I did this for sorting python private methods last, see: http://emacs.stackexchange.com/questions/12360/how-to-make-private-python-methods-the-last-company-mode-choices