Sorting version numbers

I have a need to sort version numbers in the Easy Linux initramfs. The 'sort' utility in Coreutils has the "-V" option, however my initramfs only has busybox sort, which does not have that option.

I recall some years ago, trying to figure out a script to do it. Now that the need has come up again, I did a search with google, and found this:

...yes, a simple one-liner, works great.

A note on progress with Easy Linux, the next-gen Quirky. Coming along very nicely, and lots of fun. When will there be a release? ...not sure, want to get it pretty rock-solid first, even though it will be an alpha or pre-alpha. Probably early-March.

No comments posted yet