Skip to content

Commit

Permalink
fix: sorting multiplicity values
Browse files Browse the repository at this point in the history
  • Loading branch information
Lan Le committed Aug 23, 2023
1 parent 79cc12b commit c4bd0e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/packs/src/apps/mydb/elements/details/ViewSpectra.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ class ViewSpectra extends React.Component {
});
}).sort((a, b) => (isAscend ? a.center - b.center : b.center - a.center));
let couplings = [].concat(...macs.map((m) => {
m.js.sort((a, b) => (isAscend ? a - b : b - a));
const c = m.center;
const type = m.mpyType;
const it = Math.round(m.area);
Expand Down

0 comments on commit c4bd0e4

Please sign in to comment.