minor: error message parameter order incorrect (#3748)
diff --git a/datafusion/core/src/physical_plan/sorts/sort.rs b/datafusion/core/src/physical_plan/sorts/sort.rs
index e338ead..4586106 100644
--- a/datafusion/core/src/physical_plan/sorts/sort.rs
+++ b/datafusion/core/src/physical_plan/sorts/sort.rs
@@ -132,8 +132,8 @@
let size_delta = size.checked_sub(new_size).ok_or_else(|| {
DataFusionError::Internal(format!(
"The size of the sorted batch is larger than the size of the input batch: {} > {}",
- size,
- new_size
+ new_size,
+ size
))
})?;
self.shrink(size_delta);