I’m still a python learner, so someone help me out here.
things = [
"36767277_0_col-580_permanences"
"36767277_10_col-580_permanences"
"36767277_11_col-580_permanences"
"36767277_12_col-580_permanences"
"36767277_13_col-580_permanences"
"36767277_1_col-580_permanences"
"36767277_2_col-580_permanences"
"36767277_3_col-580_permanences"
"36767277_4_col-580_permanences"
"36767277_5_col-580_permanences"
"36767277_6_col-580_permanences"
"36767277_7_col-580_permanences"
"36767277_8_col-580_permanences"
"36767277_9_col-580_permanences"
]
Given that the _
character is the delimiter for these strings, I want to sort this list by the 2nd column (the one with 0
, 10
, 11
, etc.) in ascending numerical order.
What is the best way to do this in python?