<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Wrong order when using OLDESTFIRST for certain condition</title>
        <description> Ran into an odd problem when listing userfinds by oldest first.

User: MindlessEngine


local userFinds = PGC.GetFinds(profileId, { fields = { &amp;#039;gccode&amp;#039;, &amp;#039;type&amp;#039;, &amp;#039;size&amp;#039;, &amp;#039;owner_id&amp;#039;, &amp;#039;cache_name&amp;#039;, &amp;#039;visitdate&amp;#039;, &amp;#039;country&amp;#039;, &amp;#039;region&amp;#039;, &amp;#039;county&amp;#039;, &amp;#039;difficulty&amp;#039;, &amp;#039;terrain&amp;#039; }, filter = filter, ORDER = &amp;#039;OLDESTFIRST&amp;#039; })

Iterating the list using for i, c in ipairs(userFinds) produces a weird result.
His 342nd find was done at 2019-03-17 (GC4P1MN) and his 343rd was 2020-03-29 (GC2JWV1).
Checking the logs for that cache he did find it at 2020-03-29, but he also made a NM at 2019-03-18.
It seems that ORDER = &amp;#039;OLDESTFIRST&amp;#039; uses the date for his NM-log instead of his found-log.

No idea if it&amp;#039;s just this one user that&amp;#039;s a special case, or if it might effect everyone with a NM-log before a found-log.</description>
        <link>https://project-gc.com/forum/read?4,42222,42222#msg-42222</link>
        <lastBuildDate>Wed, 23 Sep 2026 06:52:14 +0000</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://project-gc.com/forum/read?4,42222,42222#msg-42222</guid>
            <title>Wrong order when using OLDESTFIRST for certain condition</title>
            <link>https://project-gc.com/forum/read?4,42222,42222#msg-42222</link>
            <description><![CDATA[ Ran into an odd problem when listing userfinds by oldest first.<br />
<br />
User: MindlessEngine<br />
<br />
<pre class="bbcode">
local userFinds = PGC.GetFinds(profileId, { fields = { &#039;gccode&#039;, &#039;type&#039;, &#039;size&#039;, &#039;owner_id&#039;, &#039;cache_name&#039;, &#039;visitdate&#039;, &#039;country&#039;, &#039;region&#039;, &#039;county&#039;, &#039;difficulty&#039;, &#039;terrain&#039; }, filter = filter, ORDER = &#039;OLDESTFIRST&#039; })</pre>
<br />
Iterating the list using <pre class="bbcode">for i, c in ipairs(userFinds)</pre> produces a weird result.<br />
His 342nd find was done at 2019-03-17 (GC4P1MN) and his 343rd was 2020-03-29 (GC2JWV1).<br />
Checking the logs for that cache he did find it at 2020-03-29, but he also made a NM at 2019-03-18.<br />
It seems that ORDER = &#039;OLDESTFIRST&#039; uses the date for his NM-log instead of his found-log.<br />
<br />
No idea if it&#039;s just this one user that&#039;s a special case, or if it might effect everyone with a NM-log before a found-log.]]></description>
            <dc:creator>olalb</dc:creator>
            <category>Script development</category>
            <pubDate>Sat, 01 Aug 2020 13:13:00 +0000</pubDate>
        </item>
    </channel>
</rss>
