Sort gems by type then alpha