BohemianBuddha

tool

The Sorting Hat

version0.9
languageC# / .NET
updated2026-08-06
downloadget it →

The Sorting Hat takes a heap of incoming things — files, records, orders, whatever — and routes each one to the right bin according to rules you define. Point it at the mess, and it hands back order.

The idea

Every shop has some version of "look at this, decide what it is, put it in the right place." Done by hand it's tedious and error-prone. The Sorting Hat encodes that judgment once and applies it consistently, the same way every time.

Rules, briefly

if (item.Weight > threshold && item.Route == "MPL")
    bin = Bins.Overflow;
else
    bin = Bins.Standard;

Replace this with the real write-up whenever you're ready — edit content/tools/sorting-hat.md.

← back to tools