Sort completed with basic and reverse operation