Sort algorithms
are used for ordering items in an array with regard to a predefined order. Here is the implementation of some popular sorting algorithms in Java. Implementing the quick sort and merge sort are a bit tricky. They can be implemented using loops and also recursion. I chose to implement them using recursion since I like recursion the most. I have implemented the following sort algorithms:
You can see the their source code on my GitHub account