Low tech filtering:
Using basic inserters and a box, you can make a filter inserter. Restrict the box to a single stack of items, and pre-load it with a sample of your desired material. The inserter arm will then only grab items which will fit in the box.
Just take care not to let the boxes empty completely, and your ores will be sorted easily.