<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to sort a field using a wildcard for its name in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725781#M56254</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The error "&lt;EM style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Feature type is invalid&lt;/EM&gt;" refers to the "&lt;EM&gt;List&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;FeatureClasses(wild_card, feature_type, feature_dataset)&lt;/SPAN&gt;&lt;/EM&gt;" function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change your code into this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
import os
inWorkspace = arcpy.GetParameterAsText(0)

arcpy.env.overwriteOutput = True
arcpy.env.workspace = inWorkspace

fcs = arcpy.ListFeatureClasses("ev*", "point")
# define a output folder, to store the results
out_fldr = arcpy.GetParameterAsText(1)
for fc in fcs:
&amp;nbsp;&amp;nbsp;&amp;nbsp; fields = arcpy.ListFields(fc, "P10*", "Integer")
&amp;nbsp;&amp;nbsp;&amp;nbsp; for fld in fields:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_sort = os.path.join(out_fldr, "{0}_{1}.shp".format(os.path.splitext(fc)[0], fld.name))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Sort_management(fc, fc_sort, [[fld.name, "ASCENDING"]])&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you define the parameters of the Toolbox script, you should define the direction of the output folder as &lt;SPAN style="text-decoration: underline;"&gt;input&lt;/SPAN&gt;. Although your (output) results will be written to this folder, it is actually an input variable for the tool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 07:02:19 GMT</pubDate>
    <dc:creator>XanderBakker</dc:creator>
    <dc:date>2021-12-12T07:02:19Z</dc:date>
    <item>
      <title>How to sort a field using a wildcard for its name</title>
      <link>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725767#M56240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone, i have a problem with my point shapefiles in which i implement a big procession. The problem is that although all the shapefiles have the same columns there is one which starts with "P500" AND continues differently to each one which in some it is sort ascended and in others sort descended. Is there a way with python where i can sort ascend this column for every point file by using "P500" as wildcard. I tried it but my FID changed also causing me problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In some shp i have this&amp;nbsp;&amp;nbsp; and in some other this(problem)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and i want it to be like the first two columns&lt;/P&gt;&lt;P&gt;FID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PNT500B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PNT500C20&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code i have written but it doesn't work properly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="kwd" style="color: #8a4a0b;"&gt;import&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; arcpy
&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #8a4a0b;"&gt;from&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; arcpy &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #8a4a0b;"&gt;import&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; env
arcpy&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;env&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;workspace &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"c:/Bo/Well/Point"&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;
fcs &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; arcpy&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ListFeatureClasses&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"samp*"&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"point"&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;
fields &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; arcpy&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;ListFields&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;fcs&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"P500*"&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"Double"&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;
&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #8a4a0b;"&gt;for&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; fc &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #8a4a0b;"&gt;in&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; fcs&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;
&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #8a4a0b;"&gt;for&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; fiel &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #8a4a0b;"&gt;in&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; fields&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;
&amp;nbsp; arcpy&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #2b91af;"&gt;Sort_management&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;fc&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; fc_sort&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;[[&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;fiel&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="str" style="color: #800000;"&gt;"ASCENDING"&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #145680;"&gt;]])&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:02:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725767#M56240</guid>
      <dc:creator>KONPETROV</dc:creator>
      <dc:date>2021-12-12T07:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort a field without changing the FID</title>
      <link>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725768#M56241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not really clear on what you're trying to do. Do you want the fid in the same order as the other field?​&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 May 2015 18:34:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725768#M56241</guid>
      <dc:creator>SepheFox</dc:creator>
      <dc:date>2015-05-24T18:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort a field using a wildcard for its name</title>
      <link>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725769#M56242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, i don't want to change the FID. In some of my shp the column "P500" is ascended starting from 0 but in some is descended starting from for example 20. I want to sort ascend all my shp based in their fields which start from "P500". The main problem is that the name of that field in each shp is different after the first 4 characters (for example P500r21 or PM500_20EF) that's why i am trying to use a wildcard to do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 May 2015 20:16:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725769#M56242</guid>
      <dc:creator>KONPETROV</dc:creator>
      <dc:date>2015-05-24T20:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort a field using a wildcard for its name</title>
      <link>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725770#M56243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe you would just use the field name"P500*". That's a star to donate the wildcard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 May 2015 22:35:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725770#M56243</guid>
      <dc:creator>SepheFox</dc:creator>
      <dc:date>2015-05-24T22:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort a field using a wildcard for its name</title>
      <link>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725771#M56244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sephe i run it in Python window but i get an&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Runtime error&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 5, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\__init__.py", line 1119, in ListFields&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return gp.listFields(dataset, wild_card, field_type)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\geoprocessing\_base.py", line 344, in listFields&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self._gp.ListFields(*gp_fixargs(args, True)))&lt;/P&gt;&lt;P&gt;IOError: "#" does not &lt;/P&gt;&lt;P&gt;exist&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 May 2015 22:40:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725771#M56244</guid>
      <dc:creator>KONPETROV</dc:creator>
      <dc:date>2015-05-24T22:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort a field using a wildcard for its name</title>
      <link>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725772#M56245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume you want to loop through all the "samp*" shapefiles in the given path and for each "P500*" field sort it and store the result as a new featureclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is true, you could use something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy, os
arcpy.env.workspace = "c:/Bo/Well/Point"
fcs = arcpy.ListFeatureClasses("samp*", "point")
for fc in fcs:
&amp;nbsp;&amp;nbsp;&amp;nbsp; fields = arcpy.ListFields(fcs, "PNT500*", "Double")
&amp;nbsp;&amp;nbsp;&amp;nbsp; for fld in fields:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_sort = "{0}_{1}.shp".format(os.path.splitext(fc)[0], fld.name)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Sort_management(fc, fc_sort, [[fld.name, "ASCENDING"]])&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Observations:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;eliminated the "from arcpy import env" since you don't use it&lt;/LI&gt;&lt;LI&gt;list the fields for each featureclass (inside the loop through the featureclasses&lt;/LI&gt;&lt;LI&gt;In the example your fields start with PNT500, not P500&lt;/LI&gt;&lt;LI&gt;you should provide the output name fc_sort, in this case it creates a shapefile based on the input featureclass name and the field used to sort it&lt;/LI&gt;&lt;LI&gt;the field for sorting it the name of the field, not a field object, hence "fld.name"&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:02:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725772#M56245</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-12T07:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort a field using a wildcard for its name</title>
      <link>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725773#M56246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mr Bakker thanks a lot for your response. I tried to make a tool with your scipt because i want to run it inside modelbuilder but it fails. Here is the code. I changed the "samp" and "PNT500" cause i run the model again and i have different names now. But i cannot see where the problem is&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy, os
env.workspace = arcpy.GetParameterAsText(0)
fcs = arcpy.ListFeatureClasses("ev*", "point")&amp;nbsp; 
for fc in fcs:&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; fields = arcpy.ListFields(fcs, "P10*", "Double")&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; for fld in fields:&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_sort = "{0}_{1}.shp".format(os.path.splitext(fc)[0], fld.name)&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Sort_management(fc, fc_sort, [[fld.name, "ASCENDING"]])&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get that error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;File "C:\Users\Kostas\Desktop\Xander.py", line 5, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;fields = arcpy.ListFields(fcs, "P10*", "Double")&lt;/P&gt;&lt;P&gt;File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\__init__.py", line 1119, in ListFields&lt;/P&gt;&lt;P&gt;return gp.listFields(dataset, wild_card, field_type)&lt;/P&gt;&lt;P&gt;File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\geoprocessing\_base.py", line 344, in listFields&lt;/P&gt;&lt;P&gt;self._gp.ListFields(*gp_fixargs(args, True)))&lt;/P&gt;&lt;P&gt;IOError: "[u'evsamp10c10.shp', u'evsamp10c20.shp', u'evsamp10c30.shp', u'evsamp10c40.shp', u'evsamp10c50.shp', u'evsamp10c60.shp', u'evsamp10cb.shp', u'evsamp10cm10.shp', u'evsamp10cm20.shp', u'evsamp10cm30.shp', u'evsamp10cm40.shp', u'evsamp10cm50.shp', u'evsamp10cm60.shp', u'evsort10.shp']" does not exist&lt;/P&gt;&lt;P&gt;Failed to execute&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:02:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725773#M56246</guid>
      <dc:creator>KONPETROV</dc:creator>
      <dc:date>2021-12-12T07:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort a field using a wildcard for its name</title>
      <link>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725774#M56247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oops, I see the error. The ListFields takes the featureclass as input not the list of featureclasses. Change "fcs" to "fc".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 02:08:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725774#M56247</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-05-25T02:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort a field using a wildcard for its name</title>
      <link>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725775#M56248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I changed it like that but nothing changed&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy, os
env.workspace = arcpy.GetParameterAsText(0)
fcs = arcpy.ListFeatureClasses("ev*", "point")
for fc in fcs:
&amp;nbsp;&amp;nbsp;&amp;nbsp; fields = arcpy.ListFields(fc, "P10*", "Double")
&amp;nbsp;&amp;nbsp;&amp;nbsp; for fld in fields:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_sort = "{0}_{1}.shp".format(os.path.splitext(fc)[0], fld.name)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Sort_management(fc, fc_sort, [[fld.name, "ASCENDING"]])&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:02:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725775#M56248</guid>
      <dc:creator>KONPETROV</dc:creator>
      <dc:date>2021-12-12T07:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort a field using a wildcard for its name</title>
      <link>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725776#M56249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think line 2 should also yield an error, since you are not importing env from arcpy and set the workspace directly to env.workspace. Either add the line from arcpy import env or change line 2 to arcpy.env.workspace = ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You state that nothing changed, but the same error cannot occur. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The list of featureclasses "fcs" is &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;[u'evsamp10c10.shp', u'evsamp10c20.shp', u'evsamp10c30.shp', u'evsamp10c40.shp', u'evsamp10c50.shp', u'evsamp10c60.shp', u'evsamp10cb.shp', u'evsamp10cm10.shp', u'evsamp10cm20.shp', u'evsamp10cm30.shp', u'evsamp10cm40.shp', u'evsamp10cm50.shp', u'evsamp10cm60.shp', u'evsort10.shp']. You loop through this list and for each fc (like &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;'evsamp10c10.shp') you list the fields. What is the exact error?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;If you are willing to attach some sample files I can check if it works on my computer...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 02:53:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725776#M56249</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-05-25T02:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort a field using a wildcard for its name</title>
      <link>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725777#M56250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created two shapefiles starting with "ev" and added some fields starting with "P10" and ran this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy, os
# env.workspace = arcpy.GetParameterAsText(0)
arcpy.env.workspace = r"C:\Forum\SortFields"
fcs = arcpy.ListFeatureClasses("ev*", "point")
print fcs
for fc in fcs:
&amp;nbsp;&amp;nbsp;&amp;nbsp; print fc
&amp;nbsp;&amp;nbsp;&amp;nbsp; fields = arcpy.ListFields(fc, "P10*", "Double")
&amp;nbsp;&amp;nbsp;&amp;nbsp; for fld in fields:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print fld.name
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_sort = "{0}_{1}.shp".format(os.path.splitext(fc)[0], fld.name)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print fc_sort
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Sort_management(fc, fc_sort, [[fld.name, "ASCENDING"]])&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output printed is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;[u'evsamp10c10.shp', u'evsamp10cm50.shp']
evsamp10c10.shp
P10bla
evsamp10c10_P10bla.shp
evsamp10cm50.shp
P10a
evsamp10cm50_P10a.shp
P10b
evsamp10cm50_P10b.shp&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output shapefile are sorted on the field provided...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:02:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725777#M56250</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-12T07:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort a field using a wildcard for its name</title>
      <link>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725778#M56251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i tried it again but the data in shapefiles remain unsorted.. If you could try with these 6 shp would be great !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 04:32:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725778#M56251</guid>
      <dc:creator>KONPETROV</dc:creator>
      <dc:date>2015-05-25T04:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort a field using a wildcard for its name</title>
      <link>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725779#M56252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just ran the code and at first there was no result (no error either). When I looked at the data I noticed that the P10 fields are not double, but long. So if you use "Integer" in ListFields you will get the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code used:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy, os
# env.workspace = arcpy.GetParameterAsText(0)
arcpy.env.workspace = r"D:\Xander\GeoNet\SortFields"
fcs = arcpy.ListFeatureClasses("ev*", "point")

# define a output folder, to store the results
out_fldr = r"D:\Xander\GeoNet\SortFields\result"

print fcs
for fc in fcs:
&amp;nbsp;&amp;nbsp;&amp;nbsp; print fc
&amp;nbsp;&amp;nbsp;&amp;nbsp; fields = arcpy.ListFields(fc, "P10*", "Integer")
&amp;nbsp;&amp;nbsp;&amp;nbsp; print fields
&amp;nbsp;&amp;nbsp;&amp;nbsp; for fld in fields:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print " - {0}".format(fld.name)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_sort = os.path.join(out_fldr, "{0}_{1}.shp".format(os.path.splitext(fc)[0], fld.name))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print " - {0}".format(fc_sort)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Sort_management(fc, fc_sort, [[fld.name, "ASCENDING"]])&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result printed:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;[u'evsamp10c10.shp', u'evsamp10c20.shp', u'evsamp10c30.shp', u'evsamp10cm10.shp', u'evsamp10cm20.shp', u'evsamp10cm30.shp']
evsamp10c10.shp
[&amp;lt;Field object at 0x2301df0[0x22cecb0]&amp;gt;]
 - P10C10
 - D:\Xander\GeoNet\SortFields\result\evsamp10c10_P10C10.shp
evsamp10c20.shp
[&amp;lt;Field object at 0x23016b0[0x22cede8]&amp;gt;]
 - P10C20
 - D:\Xander\GeoNet\SortFields\result\evsamp10c20_P10C20.shp
evsamp10c30.shp
[&amp;lt;Field object at 0x23695f0[0x22ce338]&amp;gt;]
 - P10C30
 - D:\Xander\GeoNet\SortFields\result\evsamp10c30_P10C30.shp
evsamp10cm10.shp
[&amp;lt;Field object at 0x2369790[0x22ced10]&amp;gt;]
 - P10CM10
 - D:\Xander\GeoNet\SortFields\result\evsamp10cm10_P10CM10.shp
evsamp10cm20.shp
[&amp;lt;Field object at 0x2369190[0x22cede8]&amp;gt;]
 - P10CM20
 - D:\Xander\GeoNet\SortFields\result\evsamp10cm20_P10CM20.shp
evsamp10cm30.shp
[&amp;lt;Field object at 0x23695f0[0x22ce338]&amp;gt;]
 - P10CM30
 - D:\Xander\GeoNet\SortFields\result\evsamp10cm30_P10CM30.shp&lt;/PRE&gt;&lt;P&gt;See attached results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:02:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725779#M56252</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-12T07:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort a field using a wildcard for its name</title>
      <link>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725780#M56253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mr Bakker thanks a lot for your time. I ve written this but still doesn't work, either it succeded without results or it raised an error. Is there any difference if the folder i have my shp is named points or Points or Kos etc? Is there any problem with the folder i choose to save the new fc? This is the code for the tool:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
import os
from arcpy import env
arcpy.overwriteOutput = True
inWorkspace = arcpy.GetParameterAsText(0)
fcs = arcpy.ListFeatureClasses("ev*", inWorkspace)&amp;nbsp;&amp;nbsp;&amp;nbsp; 
# define a output folder, to store the results&amp;nbsp; 
out_fldr = arcpy.GetParameterAsText(1) 
for fc in fcs:&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; fields = arcpy.ListFields(fc, "P10*", "Integer")&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; for fld in fields:&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_sort = os.path.join(out_fldr, "{0}_{1}.shp".format(os.path.splitext(fc)[0], fld.name))&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Sort_management(fc, fc_sort, [[fld.name, "ASCENDING"]]) &lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And these are the parameters i defined, i also tried to put outfolder as workspace&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="103213" alt="Parameters.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/103213_Parameters.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i still get that error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Users\Kos\Desktop\scriptsort.py", line 6, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fcs = arcpy.ListFeatureClasses("ev*", inWorkspace)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\__init__.py", line 896, in ListFeatureClasses&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return gp.listFeatureClasses(wild_card, feature_type, feature_dataset)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\geoprocessing\_base.py", line 314, in listFeatureClasses&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self._gp.ListFeatureClasses(*gp_fixargs(args, True)))&lt;/P&gt;&lt;P&gt;RuntimeError: ERROR 999999: Error executing function.&lt;/P&gt;&lt;P&gt;Feature type is invalid&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:02:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725780#M56253</guid>
      <dc:creator>KONPETROV</dc:creator>
      <dc:date>2021-12-12T07:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort a field using a wildcard for its name</title>
      <link>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725781#M56254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The error "&lt;EM style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Feature type is invalid&lt;/EM&gt;" refers to the "&lt;EM&gt;List&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;FeatureClasses(wild_card, feature_type, feature_dataset)&lt;/SPAN&gt;&lt;/EM&gt;" function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change your code into this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
import os
inWorkspace = arcpy.GetParameterAsText(0)

arcpy.env.overwriteOutput = True
arcpy.env.workspace = inWorkspace

fcs = arcpy.ListFeatureClasses("ev*", "point")
# define a output folder, to store the results
out_fldr = arcpy.GetParameterAsText(1)
for fc in fcs:
&amp;nbsp;&amp;nbsp;&amp;nbsp; fields = arcpy.ListFields(fc, "P10*", "Integer")
&amp;nbsp;&amp;nbsp;&amp;nbsp; for fld in fields:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_sort = os.path.join(out_fldr, "{0}_{1}.shp".format(os.path.splitext(fc)[0], fld.name))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Sort_management(fc, fc_sort, [[fld.name, "ASCENDING"]])&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you define the parameters of the Toolbox script, you should define the direction of the output folder as &lt;SPAN style="text-decoration: underline;"&gt;input&lt;/SPAN&gt;. Although your (output) results will be written to this folder, it is actually an input variable for the tool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:02:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725781#M56254</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2021-12-12T07:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort a field using a wildcard for its name</title>
      <link>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725782#M56255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are the One. The Guru of python. Thanks a lot for your time Mr. Bakker. It works perfectly at last!!! (i could have never thought of that with the "output") &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 18:09:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725782#M56255</guid>
      <dc:creator>KONPETROV</dc:creator>
      <dc:date>2015-05-25T18:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort a field using a wildcard for its name</title>
      <link>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725783#M56256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad it works for you. Many of us have struggled with the "output" being of direction input...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 18:12:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725783#M56256</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-05-25T18:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort a field using a wildcard for its name</title>
      <link>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725784#M56257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mr Bakker one last tricky question. I have a problem with the code above due to that reason (output) at modelbuilder, because i don't have really an output to use as a precondition to an another tool. How can i make an output for this tool?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 05:06:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-sort-a-field-using-a-wildcard-for-its-name/m-p/725784#M56257</guid>
      <dc:creator>KONPETROV</dc:creator>
      <dc:date>2015-05-26T05:06:38Z</dc:date>
    </item>
  </channel>
</rss>

