added reorder before logic
good stoppying point for reordering files
check point for task order rewrite