finished frequency/abc sort