Is interval.merge outputs the interval in ascending order ? #1690
-
Let's say I call Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
It is ascending order. Here's the relevant code, the sorting is on line 478. Lines 476 to 495 in 20139a3 And here is the relevant test. The test's input array with length 5 is converted to an ascending order output array with length 3 when merged. luxon/test/interval/many.test.js Lines 93 to 107 in 20139a3 |
Beta Was this translation helpful? Give feedback.
-
I have added a note about this behavior to the documentation for |
Beta Was this translation helpful? Give feedback.
It is ascending order. Here's the relevant code, the sorting is on line 478.
luxon/src/interval.js
Lines 476 to 495 in 20139a3
And here is the relevant test. The test's input array with length 5 is con…