Text this: Phase error reduction in ILSF undulators using a genetic algorithm for sorting the magnetic blocks.