move sort support methods to bottom of gen'd file