Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
amk221 committed Jan 23, 2025
1 parent bca8d41 commit 4416b90
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions addon/components/select-box/index.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,11 @@ export default class SelectBox extends Component {
.filter((option) => !option.isDisabled)
.sort((a, b) => {
// Preferred sort is too slow:
// return a.element.compareDocumentPosition(b.element) ===
// Node.DOCUMENT_POSITION_FOLLOWING
// ? -1
// : 1;
//
// return a.element.compareDocumentPosition(b.element) ===
// Node.DOCUMENT_POSITION_FOLLOWING
// ? -1
// : 1;

return (
this.optionElements.indexOf(a.element) -
Expand Down

0 comments on commit 4416b90

Please sign in to comment.