react-vertical-timeline icon indicating copy to clipboard operation
react-vertical-timeline copied to clipboard

Timeline events should use dates to order rather than rely on their position in an array.

Open CodeSpent opened this issue 3 years ago • 3 comments
trafficstars

Considering this component acts as a timeline and date ranges are provided, this could be used for sorting the timeline elements in chronological order.

I was able to get this working in my own project, and will look at opening a PR for this.

CodeSpent avatar Feb 20 '22 21:02 CodeSpent

I think this would be good as an optional configuration, but it should also be able to sort by the original position in array.

joejcox avatar Feb 27 '23 12:02 joejcox

I think this would be better to sort outside the component, in javascript on client side before passing props to Timeline component or on server side.

stephane-monnot avatar Feb 27 '23 12:02 stephane-monnot

What would happen if the dates overlapped?

clbenoit avatar Feb 06 '24 13:02 clbenoit