Added new sort functions