<aside> 💡 The element that comes before stays before.

</aside>


Example and explanation

a = [3, 2a, 1, 2b, 4, 5, 8, 10, 22, 17]

After ordering this array, you have…

a = [1, 2a, 2b, 3, 4, 5, 8, 10, 17, 22]

This example clarifies the whole concept.

2a equals 2b when it comes to what we have chosen as a parameter of comparison. 2a appears before 2b. It means that after ordering the array, 2a stays before 2b.