removed misleading sort functions
fixed previous check-in