You've probably seen them in app ads: a row of glass tubes stuffed with mixed-up coloured balls, plus one or two empty tubes off to the side. Your job is to sort them so every tube holds a single colour. They look like something you can tap through without thinking, but the harder levels are real logic puzzles, and they reward planning the same way a logic grid or a nonogram does.

Mr. Puzzle spent an evening recently testing a batch of these sort games after a reader sent one in. They go by a lot of names (Ball Sort, Water Sort, Tube Sort, even Car Sort and Fish Sort), but under the paint they all run on the same rules, and the same five rules of thumb solve all of them. Here they are, with two puzzles you can play right on this page.

The Rules (They're the Same in Every Version)

Water sort versions pour a whole run of matching colour at once instead of one ball at a time, so the moves look different, but the thinking is exactly the same.

Warm-Up: Three Colours, Two Empty Tubes

Tap a tube to pick up its top ball, then tap the tube you want it to go to. Each ball also carries a letter, so you never have to rely on colour alone.

Sort It #1: Warm-Up

3 colours  ·  5 tubes  ·  Best possible: 10 moves

Rule 1: Your Empty Tube Is Your Most Valuable Piece

Beginners treat the empty tube as a parking spot and drop the first loose ball they see into it. That's the most common way to get stuck. An empty tube will take any colour. The moment you put a red ball in it, it only takes red. You've traded a wildcard for a much narrower option.

So before you fill an empty tube, ask one question: does this move uncover something I need? If the answer is no, look for another move first.

Rule 2: Look at the Bottoms First

The top balls catch your eye, but the bottom balls decide the puzzle. A ball at the bottom of a tube can't go anywhere until everything above it has moved, which makes it the natural foundation for its colour. A tube with blue on the bottom wants to become the blue tube.

Scan the bottom of every tube before your first move. If two tubes both have blue on the bottom, one of them will have to be emptied completely at some point, and that's where your real work will be.

Rule 3: Count the Buried Balls

For each colour, count how many of its balls are sitting under a different colour. Those buried balls are the real cost of finishing that colour. Go after the cheapest colour first, because every tube you complete gives you more room to work.

Advertisement

Rule 4: Never Bury a Colour You'll Need Soon

Every ball you drop lands on top of something. If it lands on a ball you'll need two moves from now, you've just added a move, or created a dead end. Park a ball on its own colour whenever you can, even when another move looks quicker.

Rule 5: Think in Pairs of Moves

Most good moves in a sort puzzle come in pairs: the first clears the way, and the second makes the progress. If you can't name your second move, the first one is probably a guess. It's the same "this has to happen before that can happen" thinking that gets you out of a jam in logic puzzle deduction.

Mr. Puzzle's tip: Stuck? Look for a tube that's only one or two balls away from being empty. Clearing it gives you a second empty tube, and two empty tubes give you room to fix almost anything.

The Real Test: Four Colours

This one needs every rule above. Two tubes start with the same colour on the bottom, so before you touch anything, decide which tube is going to become which colour.

Sort It #2: Four-Colour Shuffle

4 colours  ·  6 tubes  ·  Best possible: 16 moves

Can You Get Stuck for Good?

A fairly dealt level always has a solution, and both puzzles on this page were computer-checked to make sure, but you can absolutely move yourself into a dead end: no legal moves left, or only moves that undo each other. That's why every version has an Undo button, and there's no shame in using it. When you back up, look first at the move where you filled an empty tube. Nine times out of ten, that's where it went wrong.

The Hint button in the puzzles above works out the shortest route from wherever you are. If it says you've hit a dead end, undo a few moves and try a different use of your empty tube.

Why Sort Puzzles Are Worth Your Time

They're quick to learn, endlessly replayable, and they train the same planning muscle as harder logic puzzles: managing limited space, looking a move or two ahead, and working out what has to happen before the move you want becomes possible. If you liked these two, you'll probably enjoy the sliding-tile version of the same idea in Fifteen-Puzzle Strategy, and the step-by-step reasoning in a logic grid puzzle.