-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
fixes #1690
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -364,7 +364,7 @@ export class BaseMixin { | |
|
||
_computeOrderedGroups (data) { | ||
// clone the array before sorting, otherwise Array.sort sorts in-place | ||
return Array.from(data).sort((a, b) => this._ordering(a) - this._ordering(b)); | ||
return Array.from(data).sort((a, b) => d3.ascending(this._ordering(a), this._ordering(b))); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
gordonwoodhull
Author
Contributor
|
||
} | ||
|
||
/** | ||
|
Please use
ascending
imported fromd3-array
. Directly using ond3
will work on the browser, however, fail if someone imported modules.