get versions in sec-versioning in the right order