-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Version number sorting #2840
Copy link
Copy link
Open
Labels
Area-OutputIssue related to CLI outputIssue related to CLI outputArea-SortingIssue related to sorting outputIssue related to sorting outputIssue-FeatureThis is a feature request for the Windows Package Manager client.This is a feature request for the Windows Package Manager client.
Metadata
Metadata
Assignees
Labels
Area-OutputIssue related to CLI outputIssue related to CLI outputArea-SortingIssue related to sorting outputIssue related to sorting outputIssue-FeatureThis is a feature request for the Windows Package Manager client.This is a feature request for the Windows Package Manager client.
Brief description of your issue
If version number of package contains dashes, winget will sort it incorrectly and will think that for example older version is latest instead of latest version.
This is issue with temporal version according to @stephengillie in this PR microsoft/winget-pkgs#93519 (comment)
FontForge.FontForge package is affected by this issue because it's versions are looking like this (08-03-2022, 01-01-2023, etc.) This can be seen in this snapshot of repo https://github.com/microsoft/winget-pkgs/tree/473159531f3618f21a7b89151fb181d0632c59df/manifests/f/FontForge/FontForge
Steps to reproduce
Install latest fontforge.
List update using winget upgrade
It'll show version 08-03-2022 as latest despite having version 01-01-2023.
Expected behavior
Running winget upgrade should not show that update is available if version 01-01-2023 is already installed
Actual behavior
Running winget upgrade shows that upgrade is available as version 08-03-2022.

Environment