Skip to main content
AI Foundations

⏱ About 10 min10 XP

Good Sorting, Bad Sorting

Sorting is super useful — we learned that in Lesson 2! Sorting socks, sorting library books, sorting fruit at the grocery store all make life easier. But here is an important question: can sorting ever be unfair? Yes, it can. Today we will think carefully about when sorting helps and when it can accidentally hurt.

The Sorting Rule Makes All the Difference

Remember: when we sort, we choose a rule. A good rule helps everyone. A silly or mean rule can leave someone out unfairly. Good sorting rules focus on things that actually matter for the job. A librarian sorts books by topic — that helps readers find the right book. A doctor sorts patients by how sick they are — that helps the sickest people get help first. Bad sorting rules focus on things that do NOT matter for the job, or that treat people differently for unfair reasons. Imagine a school that sorted children into lunch tables by the color of their shirts. That rule has nothing to do with anything important — it is just silly and might hurt people's feelings. Now imagine a school that sorted children by something like how they look, or where their family is from. That would not just be silly — it would be truly unfair and unkind.

The Big Idea

The same sorting tool — putting things in groups — can be helpful or hurtful depending on the rule. A good rule is fair, useful, and kind. A bad rule can leave people out for the wrong reasons.

AI sorts things too. A hiring AI might sort job applications into 'maybe hire' and 'do not hire.' If the sorting rule was accidentally trained on unfair old data — like from a time when fewer women were hired — the AI might unfairly sort out great people. That is why people who build AI work very hard to check their sorting rules. They ask: is this rule actually fair? Does it treat everyone the same? Would I be comfortable if I were sorted by this rule? Those are important questions — and you are already old enough to ask them!

Flashcards — click each card to reveal the answer

Here is a helpful test for any sorting rule that affects people: Is the rule related to what actually matters? Would this rule be okay if it sorted me? Would the groups it makes look fair to everyone? If the answer to any of those is no, the rule probably needs fixing.

A Kind Reminder

Sorting objects like books or socks is almost always fine. But sorting people needs extra care. People are not objects. Every person deserves to be treated fairly, no matter what group they are in.

A baker sorts cookies into 'baked correctly' and 'burned.' Is this a good or bad sorting rule?

An AI sorts students into 'will do well' and 'will struggle' based only on their neighborhood. What is the problem with this rule?

Fair or Not Fair? The Sorting Game

  1. Read each sorting rule aloud with a family member or friend.
  2. For each one, decide together: is this a FAIR rule or a NOT FAIR rule? Why?
  3. Rule 1: Sort snacks into 'contains nuts' and 'nut-free' for a class with a nut allergy.
  4. Rule 2: Sort team members so taller kids get the harder jobs.
  5. Rule 3: Sort library books into fiction and non-fiction.
  6. Rule 4: Sort playground teams by the color of children's hair.
  7. After discussing, make up one fair rule and one unfair rule of your own and explain the difference.