Your dig site confusion seems solved with layer sorting, but I doubt it's always that clear cut. Soil layers can get mixed up over time, making patterns hard to see. @the_thomas mentioned his garage, but a dig site isn't as tidy as old bike parts. Artifacts shift and layers blend, so what seems sorted might still hide bigger issues. I've seen cases where layer sorting gave a false sense of order. It's useful, but calling it a simple fix might overlook real problems.
Sorting by layer makes all the difference. It reminds me of when I cleaned out my garage and found my old bike parts mixed with holiday decorations. Putting everything in piles by type showed me I had three different sets of brake pads and no real storage system. The simple act of grouping things finally showed me what I actually had.