Skip to content

Flutter version doesn't sort the version correctly #31013

@gaetschwartz

Description

@gaetschwartz

Steps to Reproduce

  1. Launch the flutter version command
  2. The versions aren't sorted correctly :
v1.4.0
v1.4.1
v1.4.10
v1.4.11
v1.4.12
v1.4.13
v1.4.14
v1.4.15
v1.4.16
v1.4.17
v1.4.18
v1.4.19
v1.4.2
v1.4.3
v1.4.4
v1.4.5
v1.4.6
v1.4.6-hotfix.1
v1.4.7
v1.4.8
v1.4.9
v1.4.9-hotfix.1

As you can see, it should be :

...
1.4.9
1.4.10
1.4.11
...

Logs


[✓] Flutter (Channel dev, v1.4.19, on Mac OS X 10.14.5 18F108f, locale en-GB)
    • Flutter version 1.4.19 at /Users/gaetan/Developer/Frameworks/flutter
    • Framework revision 6c7b6833c9 (24 hours ago), 2019-04-12 10:40:18 -0400
    • Engine revision 9aa7c9a48e
    • Dart version 2.2.1 (build 2.2.1-dev.4.2 None)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/gaetan/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    • All Android licenses accepted.

[!] iOS toolchain - develop for iOS devices (Xcode 10.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.2, Build version 10E125
    ✗ libimobiledevice and ideviceinstaller are not installed. To install with Brew, run:
        brew update
        brew install --HEAD usbmuxd
        brew link usbmuxd
        brew install --HEAD libimobiledevice
        brew install ideviceinstaller
    ✗ ios-deploy not installed. To install:
        brew install ios-deploy
    • CocoaPods version 1.6.1

[✓] Android Studio (version 3.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 34.0.1
    • Dart plugin version 182.5215
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

[✓] VS Code (version 1.33.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 2.25.0

[✓] Connected device (1 available)
    • ONEPLUS A6003 • adf8433a • android-arm64 • Android 9 (API 28)

! Doctor found issues in 1 category.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueRelatively approachable for first-time contributorstoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions