mirror of
https://github.com/nushell/nushell.git
synced 2025-01-22 22:29:10 +01:00
Return iter from sort by
(#2149)
This commit is contained in:
parent
e07a9e4ee7
commit
f32ab696d3
@ -73,13 +73,7 @@ async fn sort_by(
|
||||
|
||||
sort(&mut vec, &rest, &tag)?;
|
||||
|
||||
let mut values_vec_deque: VecDeque<Value> = VecDeque::new();
|
||||
|
||||
for item in vec {
|
||||
values_vec_deque.push_back(item);
|
||||
}
|
||||
|
||||
Ok(futures::stream::iter(values_vec_deque).to_output_stream())
|
||||
Ok(futures::stream::iter(vec.into_iter()).to_output_stream())
|
||||
}
|
||||
|
||||
pub fn sort(
|
||||
|
Loading…
Reference in New Issue
Block a user