DEV Community

Discussion on: Flatten and Sort an Array of Arrays JavaScript

Collapse
 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️

Why would you filter out duplicates before sorting? Once sorted, duplicates will all be next to each other...