You can either sort by sets (good if you have kept a lot of original boxes as this helps keep the "original feel"), or by parts.
I sort by parts, mainly because I find it helps me locate the pieces I need more quickly.
First I sort by brick / plate type, then I sort by size / length. I do not have enough containers to further sort by colours, however.