improve sort for homecox