I have a list that consists of details like this:
list1 = [\"1\", \"100A\", \"342B\", \"2C\", \"132\", \"36\", \"302F\"]
now, i want to sor
Well, you have to find a way to convert your strings to numbers first. For example
import re def convert(str): return int("".join(re.findall("\d*", str)))
and then you use it as a sort key:
list1.sort(key=convert)