attempt to reorder stuff according to guidelines