Would you sort four names the same way as a whole school's shuffled register?
Your form register is already in order, but the register for a whole school sports day has been shuffled. If your program can use bubble sort or merge sort, would you pick the same one for both?
Use pupil IDs instead of names so you can see the order at a glance. In the first register, the IDs go from smallest to largest. In the second, three comes before two. That pair tells you the second register is out of order.
Bubble sort checks neighbours from left to right and swaps a pair if the larger ID comes first. Watch it check one and two, two and three, then three and four. That's one pass. A whole pass with no swaps tells you the register is sorted, so you can stop.
Try the same rule on five, six, eight, seven. The first two pairs need no swap, but eight and seven haven't been checked yet. Pick what the program should do next.
Start with three, one, four, two. On pass one, three swaps with one, then four swaps with two. Four is now fixed. Pass two skips four and swaps three with two, fixing three. The last pass checks one and two without swapping. Add three, two and one to get six comparisons.
Split the same IDs into halves, then single items. Merge each pair of single items with one comparison. Now compare the two front IDs each time and take the smaller: one, then two, then three. Only four is left, so copy it without comparing. That's five comparisons in total.
Now merge two, five with one, six. Each time, compare the two front numbers and copy the smaller one. Once a list is empty, copy what's left. Pick the number of comparisons you make in this final merge.
For the final merge, the original list holds the two sorted halves. Watch one, two and three fill the temporary slots. Four goes in last, then all four IDs are copied back. This merge needs four extra slots. Bubble sort swaps within the original list, so it needs no extra list.
On these shuffled IDs, bubble sort makes six comparisons and merge sort makes five. Does merge sort always win? Look at the sorted IDs: bubble sort stops after three comparisons, while merge sort still splits the list and makes four comparisons. These are comparison counts, so they leave out work like copying.
If you're asked to compare the algorithms, justify your choice for each register. On the short sorted register, bubble sort stops after one pass and needs no extra list. On the large shuffled register, repeated halving gives few levels of merging, while bubble sort can need many passes. Check there's enough memory.