sorting algorithms are used for sorting 1. Selection sort 2. bubble sort 3. merge sort 4. heap sort