Skip to content
This repository was archived by the owner on Mar 12, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/parallel/parallel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,8 @@ export class ParallelPlot extends React.Component<ParallelPlotData, ParallelPlot
this.yscale[k] = this.createScale(k);
return true;
}.bind(this)).reverse().sort(function(this: ParallelPlot, a: string, b: string) {
const pda = this.state.order.findIndex((e) => e == a);
const pdb = this.state.order.findIndex((e) => e == b);
const pda = this.state.order.findIndex((e) => e == b);
const pdb = this.state.order.findIndex((e) => e == a);
return (pdb == -1 ? this.state.order.length : pdb) - (pda == -1 ? this.state.order.length : pda);
}.bind(this));
this.setState({
Expand Down