Start with the behaviour.
Describe the thing a reader could actually notice: a list loses its selected item after sorting, or an empty search looks like a failure. That sentence gives the investigation a boundary.
Keep the symptom separate from its suspected cause. “The selection disappears” is an observation. “The cache is broken” is a theory that still needs a patient look.
Make the smallest useful comparison.
Choose a case that works and a nearby case that does not. Compare their inputs, the point where they diverge, and the state each leaves behind.
For the sorting example, keep the same items and change only their order. A narrow comparison can reveal an assumption that a broad rewrite would quietly hide.