sort prototypes by source