Heap sort, Merge sort, Insertion sort, Selection sort, Radix sort, Quick sort and Bubble sort implementation in Javascript