<?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 Pro SDK CodedValueDomain is always sorted in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-sdk-codedvaluedomain-is-always-sorted/m-p/1323742#M10256</link>
    <description>&lt;P&gt;I was trying to report on any coded domains where the values in the domain were not sorted in order.&amp;nbsp; When you add a new domain code, it gets added to the end of the list and I want to know where these situations exist in our database.&amp;nbsp; But in the Pro SDK, the CodedValueDomain class only has the GetCodedValuePairs method to get access to these values and this returns a sorted list meaning they are not in the order they actually exist in the database.&amp;nbsp; I can just run a sort on all domain and that will probably be correct.&amp;nbsp; But I'd be concerned if there might be some domain that might have a specific non-sorted order that we don't want to change.&amp;nbsp; I'll probably do this in python but my primary development environment is C# and I have lots of code and helpers to work with so prefer to do these things here instead.&amp;nbsp; Would be helpful if the SDK could actually provide the needed information.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Aug 2023 03:25:09 GMT</pubDate>
    <dc:creator>BillyBuerger</dc:creator>
    <dc:date>2023-08-30T03:25:09Z</dc:date>
    <item>
      <title>Pro SDK CodedValueDomain is always sorted</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-sdk-codedvaluedomain-is-always-sorted/m-p/1323742#M10256</link>
      <description>&lt;P&gt;I was trying to report on any coded domains where the values in the domain were not sorted in order.&amp;nbsp; When you add a new domain code, it gets added to the end of the list and I want to know where these situations exist in our database.&amp;nbsp; But in the Pro SDK, the CodedValueDomain class only has the GetCodedValuePairs method to get access to these values and this returns a sorted list meaning they are not in the order they actually exist in the database.&amp;nbsp; I can just run a sort on all domain and that will probably be correct.&amp;nbsp; But I'd be concerned if there might be some domain that might have a specific non-sorted order that we don't want to change.&amp;nbsp; I'll probably do this in python but my primary development environment is C# and I have lots of code and helpers to work with so prefer to do these things here instead.&amp;nbsp; Would be helpful if the SDK could actually provide the needed information.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 03:25:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-sdk-codedvaluedomain-is-always-sorted/m-p/1323742#M10256</guid>
      <dc:creator>BillyBuerger</dc:creator>
      <dc:date>2023-08-30T03:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Pro SDK CodedValueDomain is always sorted</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-sdk-codedvaluedomain-is-always-sorted/m-p/1601034#M12804</link>
      <description>&lt;P&gt;Hello.&amp;nbsp; Did you ever find a solution to obtain a non-sorted "AS IS" list of domain values?&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2025 18:57:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-sdk-codedvaluedomain-is-always-sorted/m-p/1601034#M12804</guid>
      <dc:creator>JonathanDewalt</dc:creator>
      <dc:date>2025-03-31T18:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Pro SDK CodedValueDomain is always sorted</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-sdk-codedvaluedomain-is-always-sorted/m-p/1601040#M12806</link>
      <description>&lt;P&gt;I haven't had a need for this since I posted.&amp;nbsp; But the latest Pro 3.4 SDK still only has this GetCodedValuePairs method to get the list of values and it returns a sorted list.&amp;nbsp; So I don't see any way to get the coded values as stored in the database and not sorted.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2025 19:07:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/pro-sdk-codedvaluedomain-is-always-sorted/m-p/1601040#M12806</guid>
      <dc:creator>BillyBuerger</dc:creator>
      <dc:date>2025-03-31T19:07:06Z</dc:date>
    </item>
  </channel>
</rss>

