<html><head></head><body><div class="ydpaca42313yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div></div>
        <div dir="ltr" data-setdir="false"><div dir="ltr" data-setdir="false"><div dir="ltr" data-setdir="false">Hi LW,</div><div><br></div><div dir="ltr" data-setdir="false">Not sure about the first question, it is likely something with the way the code is written. The sort may have been left out to make it run faster?<br></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">For the second question: the best way is to just use the "List unique values" tool, the results of which can be saved to CSV. <br></div><div dir="ltr" data-setdir="false">  If you really want them, the value map data can be found in the .qgs or .qgz file, if you open it in a text editor and search for one of the values.</div><div dir="ltr" data-setdir="false">  Note that the description, not the value, is what is displayed in the data entry form, but the value is what is saved in the table.<br></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">  You have probably already figured out that to make a sorted unique value map from the data in an existing field with repeated values, you click: "Load Data from Layer" then set the layer to the layer you are modifying, then set both the Value and Description to the field you are modifying and click "View All". <br></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">-Thayer<br></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr">=================<br></div><div dir="ltr"><br></div><div dir="ltr">> Date: Fri, 4 Feb 2022 15:43:20 +0100<br></div><div dir="ltr" data-setdir="false"><span>> </span>From: "L.W." <<a href="mailto:eaglelw@gmx.de" rel="nofollow" target="_blank">eaglelw@gmx.de</a>><br></div><div dir="ltr" data-setdir="false"><span>> </span>To: QGIS User List <<a href="mailto:qgis-user@lists.osgeo.org" rel="nofollow" target="_blank">qgis-user@lists.osgeo.org</a>><br></div><div dir="ltr" data-setdir="false"><span>> </span>Subject: [Qgis-user] Sorted Unique List<br></div><div dir="ltr" data-setdir="false"><span>> </span>Message-ID: <<a href="mailto:66eab53b-9d0c-178c-d088-02a9fdae6d49@gmx.de" rel="nofollow" target="_blank">66eab53b-9d0c-178c-d088-02a9fdae6d49@gmx.de</a>><br></div><div dir="ltr" data-setdir="false"><span>> </span>Content-Type: text/plain; charset=UTF-8; format=flowed<br></div><div dir="ltr" data-setdir="false"><span>> </span><br></div><div dir="ltr" data-setdir="false"><span>> </span>Hi,<br></div><div dir="ltr" data-setdir="false"><span>> </span><br></div><div dir="ltr" data-setdir="false"><span>> </span>how to sort the list for unique values [editable] in layer's -><br></div><div dir="ltr">properties -> Attributes Form?<br></div><div dir="ltr" data-setdir="false"><span>> </span><br></div><div dir="ltr" data-setdir="false"><span>> </span>The same, how to re-organize a list of Value Map?<br></div><div dir="ltr" data-setdir="false"><span>> </span><br></div><div dir="ltr" data-setdir="false"><span>> </span>I haven't a CSV for Input, how to export hte given list?<br></div><div dir="ltr" data-setdir="false"><span>> </span><br></div><div dir="ltr" data-setdir="false"><span>> </span>regards<br></div><div><span>> </span>.lw</div></div><div><br></div></div></div></body></html>