Sorting Society: Scientists, Normies & Stubborn Folk

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."

% Sorted Over Time

Press Start to begin sorting

Under the Hood: Our Bubble Sort + Meme Logic

Here's the (somewhat simplified) pseudo-code. Each time we do a comparison or swap, the relevant line is highlighted.

Choose a Meme Type

How does this person behave?