Hard

You need to sort an array of software version numbers following semantic versioning (major.minor.patch). Which implementation correctly sorts version numbers like "2.0.1" vs "2.1.0" vs "2.0.12"?

Choose an option below