interactive listing sort fixed #142

Merged
merged 1 commit into from Jul 10, 2013

2 participants

@jeromedecoster

When you list availabe remote version with n ls, the listing is correctly sorted:

    0.8.14
    0.8.15
    0.9.0
    0.9.1
    0.10.0
    0.10.1

But when you use the intertive listing to switch node version, the lising is currently like:

    0.10.0
    0.10.1
    0.8.14
    0.8.15
    0.9.0
    0.9.1

This fix correct this problem and also retrieve only valid node directory under $VERSIONS_DIR/* : only directories matching \d+.\d+.\d+ are returned

I'm very happy with this PR

@tj
Owner
tj commented Jul 10, 2013

great! thanks

@tj tj merged commit 32a6c80 into tj:master Jul 10, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment