Thanks a lot, Daniel. Your solution works for my original list, but let's take another example mylist=list("VDD" "GND" "dd_b[0]" "dd_b[1]" "bb_a[0]" "bb_a[1]" "dd_abc" "bb_rst") the results after running your code will be ==> ("GND" "VDD" "bb_rst" "dd_abc" "bb_a[1]" "bb_a[0]" "dd_b[1]" "dd_b[0]") I want mylist become ("GND" "VDD" "bb_a[1]" "bb_a[0]" "bb_rst" "dd_abc" "dd_b[1]" "dd_b[0]"). The elements of the list are sorted alphanumerically, and the name with bus quotation are sorted in descending order instead. Could you take a look again ... Best regards,
↧