Fix SDK version sorting to prioritize 10.0.100 by Copilot · Pull Request #420 · dotnet/cli-lab

@marcpopMSFT

…omparison

Changed VisualStudioSafeVersionsExtractor.GetReasonRequiredStrings to sort by Bundle object (which uses semantic version comparison) instead of DisplayName string. This fixes the issue where version 10.0.100 was incorrectly sorted before 2.x, 5.x, etc. due to lexicographic string ordering where "1" < "2".

Co-authored-by: marcpopMSFT <12663534+marcpopMSFT@users.noreply.github.com>
Co-authored-by: marcpopMSFT <12663534+marcpopMSFT@users.noreply.github.com>
Co-authored-by: marcpopMSFT <12663534+marcpopMSFT@users.noreply.github.com>

Copilot AI changed the title [WIP] Fix SDK version sorting to prioritize 10.0.100 Fix SDK version sorting to prioritize 10.0.100

Nov 20, 2025

marcpopMSFT

NikolaMilosavljevic