added skeleton sort functions