reorder minard_dispatch main function