core: Fix reordering of edges in admin (epgsql incompatibility)