Self-organized sorting of insulating agents via a chemotaxis-based paradigm