Skip to content

Commit b34ffcc

Browse files
committed
fix(forkJoin): Fix concurrent sort order.
1 parent 68667aa commit b34ffcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/observable/forkJoinConcurrent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ export function forkJoinConcurrent<T>(
1818
return from(observables).pipe(
1919
mergeMap(o => o.pipe(last()), (ov, iv, oi, ii) => ({ index: oi, value: iv }), concurrent),
2020
toArray(),
21-
map(a => a.sort((l, r) => r.index - l.index).map(e => e.value))
21+
map(a => a.sort((l, r) => l.index - r.index).map(e => e.value))
2222
);
2323
}

0 commit comments

Comments
 (0)