It depends.
If you sort all the items by type, i.e. all cabinets together, all door and drawer fronts together, all panels together, and so forth, that will be very helpful.
However, sorting them regarding the location, i.e. a cabinet plus its door/drawer plus its hardware etc., in one pile by itself and so forth, is not a good idea.
Here’s a short video showing how I do it myself.