code: def file_sort(my_list):
      
  
      def alphanum_key(key):
          """
          Split the key into str/int parts
          """
          return [int(s) if s.isdigit() else s for s in re.split("([0-9]+)", key)]
  
      my_list.sort(key=alphanum_key)
      return my_list
docs: Sort a list of files in a nice way.
      eg item-10 will be after item-9