What happen if the array element are not in the sequential manner other than increasing Or decreasing format

suppose my array element be 45,6,93,4,096

All sorting algorithms arranges a set of elements in a particular fashion that is either increasing order or decreasing order. Bubble sort is one such algorithm.
if your input is 45,6,93,4,96. then after applying bubble sort it will arrange elements like 4,6,45,93,96.
sorting algos are used to arrange elements when they are not in increasing or decreasing fashion

Thanks.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.