[1]: quicksort is shown here, but the channel has plenty of others https://youtu.be/3San3uKKHgg
[1]: quicksort is shown here, but the channel has plenty of others https://youtu.be/3San3uKKHgg
The first part is crucial, because if the group has two or more people exposed to CS courses, they'll invariably start negotiating the optimal algorithm to use while trying to recall the actual implementation, thus preventing any actual sorting from taking place.
This is similar to the best design we have for the fastest way to board a plane: take people in a dozen or so “chunks”, then have each chunk stand in a sorting area atop a diagram of the airplane, one chunk at a time. A group enters the area and sorts themselves by standing near the place on the diagram where their seat is, then boards the plane in line. As each chunk boards, they’re already in the right order so that nobody is blocking anyone while trying to stuff their overhead luggage.
I’m not sure if any company has implemented the system but there was some test a company did of a bunch of boarding techniques and it was the most efficient.
I say psuedo because real objects have lots of properties both on the rearranging and comparison sides that are not quite the same as digital ones. For eg it's faster to compare numbers that have a large difference in magnitude, and it's easier to swap objects that are physically close to each other. So following a CS algorithm to the letter is usually slower than adapting a little.
Practical CS theory isn’t really relevant here because it is N-parallel for N people.