I organize mine into roughly three boxes by how common they are.
One for every-day cables (like USB C), one for the stranger cables (like USB-B 3), and one for the one-offs (like a Nintendo DS cable).
It's the easiest to actually keep organized and it's easy to find what I need.