Fixed sorting problem for Compound Pharma