<?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: Sort in memory feature layer arcpy in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/sort-in-memory-feature-layer-arcpy/m-p/86039#M6760</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just realized something, so let me test before I send you a reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 May 2016 21:16:00 GMT</pubDate>
    <dc:creator>ArjunDongre</dc:creator>
    <dc:date>2016-05-11T21:16:00Z</dc:date>
    <item>
      <title>Sort in memory feature layer arcpy</title>
      <link>https://community.esri.com/t5/python-questions/sort-in-memory-feature-layer-arcpy/m-p/86036#M6757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am aware that I cannot use the sql_clause parameter on arcpy in-memory layers, the dataset must exist in a database. However, the program I have written must then write out a file every single time I run a network analyst problem (and subsequently delete it). I am working with tens of thousands or records, and half a dozen or so route solves per record. I need to reduce my iteration processing times as much as possible, and not having to write out a file every time would save a ton of time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am specifically trying to sort the junctions output from the copy traversed features method on a closest facility later, stored in-memory of course.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any work-around would be much appreciated. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 20:20:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sort-in-memory-feature-layer-arcpy/m-p/86036#M6757</guid>
      <dc:creator>ArjunDongre</dc:creator>
      <dc:date>2016-05-11T20:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Sort in memory feature layer arcpy</title>
      <link>https://community.esri.com/t5/python-questions/sort-in-memory-feature-layer-arcpy/m-p/86037#M6758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried list comprehension, but the output didn't make sense. I need to revisit tomorrow, however.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 20:59:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sort-in-memory-feature-layer-arcpy/m-p/86037#M6758</guid>
      <dc:creator>ArjunDongre</dc:creator>
      <dc:date>2016-05-11T20:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sort in memory feature layer arcpy</title>
      <link>https://community.esri.com/t5/python-questions/sort-in-memory-feature-layer-arcpy/m-p/86038#M6759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe I understand your overall challenge, but I can't provide any specific feedback without knowing more about your data.&amp;nbsp; Can you provide some examples or attach an extract of your data and explain what you are trying to do with the data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 21:07:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sort-in-memory-feature-layer-arcpy/m-p/86038#M6759</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2016-05-11T21:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sort in memory feature layer arcpy</title>
      <link>https://community.esri.com/t5/python-questions/sort-in-memory-feature-layer-arcpy/m-p/86039#M6760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just realized something, so let me test before I send you a reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 21:16:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sort-in-memory-feature-layer-arcpy/m-p/86039#M6760</guid>
      <dc:creator>ArjunDongre</dc:creator>
      <dc:date>2016-05-11T21:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sort in memory feature layer arcpy</title>
      <link>https://community.esri.com/t5/python-questions/sort-in-memory-feature-layer-arcpy/m-p/86040#M6761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Josh,&lt;/P&gt;&lt;P&gt; Thanks for the quick response. I just realized something that I need to test, and I broke my program, so Im debugging at the moment. I’ll update you if I figure out the solution!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Arjun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 22:00:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sort-in-memory-feature-layer-arcpy/m-p/86040#M6761</guid>
      <dc:creator>ArjunDongre</dc:creator>
      <dc:date>2016-05-11T22:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sort in memory feature layer arcpy</title>
      <link>https://community.esri.com/t5/python-questions/sort-in-memory-feature-layer-arcpy/m-p/86041#M6762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/tools/data-management-toolbox/sort.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/tools/data-management-toolbox/sort.htm"&gt;Sort—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp; to sort your data. You may also be interested in &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/tools/analysis-toolbox/generate-near-table.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/tools/analysis-toolbox/generate-near-table.htm"&gt;Generate Near Table—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2016 13:48:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sort-in-memory-feature-layer-arcpy/m-p/86041#M6762</guid>
      <dc:creator>WesMiller</dc:creator>
      <dc:date>2016-05-12T13:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sort in memory feature layer arcpy</title>
      <link>https://community.esri.com/t5/python-questions/sort-in-memory-feature-layer-arcpy/m-p/86042#M6763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help. I looked into Sort, but it write’s out another table to disc which I then have to read. I am trying to avoid writing to disc, same with generate near table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also looked into a list comprehension as well, which I was able to get partly. I need to look into a bit more.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2016 14:02:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sort-in-memory-feature-layer-arcpy/m-p/86042#M6763</guid>
      <dc:creator>ArjunDongre</dc:creator>
      <dc:date>2016-05-12T14:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sort in memory feature layer arcpy</title>
      <link>https://community.esri.com/t5/python-questions/sort-in-memory-feature-layer-arcpy/m-p/86043#M6764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Both of the tools can be used in_memory&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2016 14:08:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sort-in-memory-feature-layer-arcpy/m-p/86043#M6764</guid>
      <dc:creator>WesMiller</dc:creator>
      <dc:date>2016-05-12T14:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sort in memory feature layer arcpy</title>
      <link>https://community.esri.com/t5/python-questions/sort-in-memory-feature-layer-arcpy/m-p/86044#M6765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That may work then. I just want to try and limit the number of extra steps as well.  I’ll look into it. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2016 14:10:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sort-in-memory-feature-layer-arcpy/m-p/86044#M6765</guid>
      <dc:creator>ArjunDongre</dc:creator>
      <dc:date>2016-05-12T14:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Sort in memory feature layer arcpy</title>
      <link>https://community.esri.com/t5/python-questions/sort-in-memory-feature-layer-arcpy/m-p/86045#M6766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, I was able to switch around my facilities/incidents and “travel_to/from” parameters to sort out in the order I needed and therefore didn’t have to worry about sorting again later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help though!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2016 18:22:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sort-in-memory-feature-layer-arcpy/m-p/86045#M6766</guid>
      <dc:creator>ArjunDongre</dc:creator>
      <dc:date>2016-05-12T18:22:04Z</dc:date>
    </item>
  </channel>
</rss>

