Schema dump improvement, sorting models and fields during dump