# The Sorted Import That Made Search Crawl: Why Balance Matters

Keep a contact list fast however its names arrive: see why a sorted import turns a plain binary search tree into a line as slow as a list, why shuffling and rebuilding don't fix it, and which always-balanced sorted map your language gives you.

![Cheat sheet: The Sorted Import That Made Search Crawl: Why Balance Matters](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/47c42e2721fb4c8e80ce9f747e313a89.webp)

- Category: Data Structures
- Level: Journeyman
- Tags: Balanced Tree, data structures, Self-Balancing Tree, Sorted Map, Tree Height
- Updated: November 3, 2026

Source: https://www.ask-codey.com/cheat-sheets/ds-tree-balance-cheat-sheet
