working company and individual sort functions