Fixes #16964 This adds a proper sorter for versions which takes into account semantic versions, rather than just relying on localeCompare.