Made fix ordering function public.