def tree_model_natsort(model, row1, row2, user_data=None):
sort_column, sort_type = model.get_sort_column_id()<EOL>value1 = model.get_value(row1, sort_column)<EOL>value2 = model.get_value(row2, sort_column)<EOL>sort_list1 = util.natsort(value1)<EOL>sort_list2 = util.natsort(value2)<EOL>status = sort_list1 < sort_list2<EOL>if sort_list1 < sort_list2:<EOL><INDENT>return -<NUM_LIT:1><EOL><DEDENT>else:<EOL><INDENT>return <NUM_LIT:1><EOL><DEDENT>
用natural sorting算法对TreeModel的一个column进行排序