Stratus3D / asdf-lua

Lua plugin for asdf version manager. https://github.com/asdf-vm/asdf
MIT License
62 stars 13 forks source link

Ensure versions printed by list-all are in the correct order #1

Closed Stratus3D closed 7 years ago

Stratus3D commented 8 years ago

Something like this should work, if it's not already implemented:

local sort_cmd
if sort --help | grep -q -- '-V'; then
    sort_cmd='sort -r -V'
else
    sort_cmd='sort -r'
fi