Sort an array of versions. (node module)