Quantcast
Channel: Cadence Custom IC Design Forum
Viewing all articles
Browse latest Browse all 4889

Sorting list of version numbers

$
0
0

Have a list of version numbers. Example list("v-0.1" "v-1.0" "v-1.1" "v-2.0" "v-11.0" "v-11.2" "v-11.10")

The example is a sorted list and the latest is "v-11.10". The lastest is determined primarily by the number before the dot and secondarily by the number after the dot.

Suppose this list was not sorted? For example, given list("v-1.1" "v-1.0" "v-0.1" "v-11.10" "v-11.0" "v-11.2" "v-2.0") how can I sort this to get the version numbers in order?


Viewing all articles
Browse latest Browse all 4889

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>