arunghosh / arunghosh/react-time-line
Date sort
- Dominant language
- JavaScript
- Stars
- 73
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Description
Maybe you can sort items before creating your array by day in your getFormattedData(items), like:
`items.sort((itemA, itemB) => {`
`if(moment(itemA.ts).isBefore(itemB.ts)) {`
` return -1;`
`} else if(moment(itemB.ts).isBefore(itemA.ts)) {`
` return 1;`
`} else {`
` return 0;`
`}`
`}).forEach(....`
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the getFormattedData(items) entry point mentioned in the issue and inspect how items are turned into the timeline array. Verify the intended timestamp order against the displayed events; done means items are consistently ordered by day before the array is created.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100