Sorting algorithms/Bubble sort: Difference between revisions

Content added Content deleted
m (→‎{{header|Fortran}}: code tweaks)
m (Redundant cat link)
Line 1: Line 1:
{{task}}{{Sorting Algorithm}}
{{task|Sorting Algorithms}}{{Sorting Algorithm}}
In this task, the goal is to sort an array of elements using the bubble sort algorithm. The elements must have a total order and the index of the array can be of any discrete type. For languages where this is not possible, sort an array of integers.
In this task, the goal is to sort an array of elements using the bubble sort algorithm. The elements must have a total order and the index of the array can be of any discrete type. For languages where this is not possible, sort an array of integers.