Sort Comparison - Bubble vs Selection vs Insertion

Animations for each of the sorts are shown side by side here.

Numeric or Text sort (check box to see the difference)

# of elements:      Max element #:                       Tick for NUMERIC data:
Here is a hard coded unsorted text array with animals:

               
Stats are:

Stages of the sort (Passes - P and Swap count - S):

The sorted array is:

Bubble info: pseudocode and flow chart - Samuel Davis Text for Software Development & Design, Yr 12 Ch4 P's 170-171. Diagram of passes for the default animals should agree with the result above.

Selection info: pseudocode and flow chart - Samuel Davis Text for Software Development & Design, Yr 12 Ch4 P's 166-167. Diagram of passes for the default animals should agree with the result above.

Insertion info: pseudocode - Samuel Davis Text for Software Development & Design, Yr 12 Ch4 P's 162-164. Diagram of passes for the default animals should agree with the result above. More information here:
https://www.w3resource.com/javascript-exercises/searching-and-sorting-algorithm/searching-and-sorting-algorithm-exercise-4.php