mirror of
https://github.com/danbulant/nushell
synced 2026-05-24 12:35:59 +00:00
Return iter from sort by (#2149)
This commit is contained in:
parent
e07a9e4ee7
commit
f32ab696d3
1 changed files with 1 additions and 7 deletions
|
|
@ -73,13 +73,7 @@ async fn sort_by(
|
||||||
|
|
||||||
sort(&mut vec, &rest, &tag)?;
|
sort(&mut vec, &rest, &tag)?;
|
||||||
|
|
||||||
let mut values_vec_deque: VecDeque<Value> = VecDeque::new();
|
Ok(futures::stream::iter(vec.into_iter()).to_output_stream())
|
||||||
|
|
||||||
for item in vec {
|
|
||||||
values_vec_deque.push_back(item);
|
|
||||||
}
|
|
||||||
|
|
||||||
Ok(futures::stream::iter(values_vec_deque).to_output_stream())
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn sort(
|
pub fn sort(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue