partition ordering fix