Before your pipe gets to the router to be sorted, use a filter with each of the 6 crystal types, and dump those into a chest/void pipe. I think the IDs are associated with the face they were attached to when they are mined.
Once you got one of each of the crystal meta:ids you can also just...