Quantcast
Channel: Jason Andrews Blog
Viewing all articles
Browse latest Browse all 33813

how to sort a list alphanumerically with bus names in descending order using skill

$
0
0
I have a list such as : mylist=list("VDD" "GND" "ddd[0]" "ddd[1]" "ddd[2]" "bb[0]" "bb[1]" "bb[2]") I try ==> mylist=sort(mylist 'alphalessp) the list become ==> ("GND" "VDD" "bb[0]" "bb[1]" "bb[2]" "ddd[0]" "ddd[1]" "ddd[2]") I want mylist become ("GND" "VDD" "bb[2]" "bb[1]" "bb[0]" "ddd[2]" "ddd[1]" "ddd[0]"). The elements of the list are sorted alphanumerically, but the bus names are sorted in descending order instead. Thanks...

Viewing all articles
Browse latest Browse all 33813

Trending Articles