Fix #382: make the display order of the Xcode version list increment and filtered duplicated versions by wangzhizhou · Pull Request #383 · XcodesOrg/xcodes

issue#382

I run the command swift run xcodes list on two commid to test the fix result:

the two result write into txt files as follow:

and use the visual studio code to diff this two txt file with command: code --diff before.txt after.txt:

  1. filtered duplicated version:
  • 3.2.3 (10M2262)
  1. reorder two version with releaseData increment:
  • 4.1 (4B110i)
  • 4.1 (4B110f)

image

  1. other fix version order:

image

  1. filtered duplicated version:
  • 26.0 (17A324) (Installed, Selected)
  • 26.0.1 (17A400)
  • 26.1 (17B55)
  • 26.1.1 (17B100)

image