We have a group of people, each with a number (their "belief score"). Our goal is to get them arranged from lowest to highest. But each person has a meme type:
Sometimes, the group might get less sorted as they shuffle around, aiming for the bigger goal of complete order. Think of it as "two steps forward, one step back."
Give it a try! Label each person, then press "Start." For curious minds, click "Look Under the Hood."
Here's the (somewhat simplified) pseudo-code. Each time we do a comparison or swap, the relevant line is highlighted.