Skip to content

Commit

Permalink
fix(forkJoin): Fix concurrent sort order.
Browse files Browse the repository at this point in the history
  • Loading branch information
cartant committed Feb 21, 2018
1 parent 68667aa commit b34ffcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/observable/forkJoinConcurrent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ export function forkJoinConcurrent<T>(
return from(observables).pipe(
mergeMap(o => o.pipe(last()), (ov, iv, oi, ii) => ({ index: oi, value: iv }), concurrent),
toArray(),
map(a => a.sort((l, r) => r.index - l.index).map(e => e.value))
map(a => a.sort((l, r) => l.index - r.index).map(e => e.value))
);
}

0 comments on commit b34ffcc

Please sign in to comment.