<?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 sorting the filelist function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sorting-the-filelist-function/m-p/231989#M83661</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;Can someone explain me, how the filelist function sorts the files ? by name ? by date ? by size ?&lt;/P&gt;&lt;P&gt;is there a way to change the default sort ?&lt;/P&gt;&lt;P&gt;thank you all by advance for your answers&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 May 2010 10:35:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-05-05T10:35:28Z</dc:date>
    <item>
      <title>sorting the filelist function</title>
      <link>https://community.qlik.com/t5/QlikView/sorting-the-filelist-function/m-p/231989#M83661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;Can someone explain me, how the filelist function sorts the files ? by name ? by date ? by size ?&lt;/P&gt;&lt;P&gt;is there a way to change the default sort ?&lt;/P&gt;&lt;P&gt;thank you all by advance for your answers&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 10:35:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sorting-the-filelist-function/m-p/231989#M83661</guid>
      <dc:creator />
      <dc:date>2010-05-05T10:35:28Z</dc:date>
    </item>
    <item>
      <title>sorting the filelist function</title>
      <link>https://community.qlik.com/t5/QlikView/sorting-the-filelist-function/m-p/231990#M83662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pvivier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could not find a simple answer either but gotten round the problem by loading the filenames into a table. E.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET lc_QvdDeltaFiles = $(gc_OutputDir)DeltaBackUp\$(gc_TableName)_*.qvd;&lt;BR /&gt;&lt;BR /&gt; // List all files in Delta files directory&lt;BR /&gt; FOR EACH File IN FILELIST('$(lc_QvdDeltaFiles)');&lt;BR /&gt; LET ln_NumOfRec = ln_NumOfRec + QVDNOOFRECORDS ('$(File)');&lt;BR /&gt;&lt;BR /&gt; FileTable:&lt;BR /&gt; LOAD '$(File)' AS FileName,&lt;BR /&gt; FILESIZE('$(File)') AS Size,&lt;BR /&gt; FILETIME('$(File)') AS FileTime&lt;BR /&gt; AUTOGENERATE 1;&lt;BR /&gt; NEXT File;&lt;BR /&gt;&lt;BR /&gt; FileTableSrt:&lt;BR /&gt; LOAD FileName,&lt;BR /&gt; FileSize,&lt;BR /&gt; FileTime&lt;BR /&gt; RESIDENT FileTable&lt;BR /&gt; ORDER BY FileTime desc;&lt;BR /&gt;&lt;BR /&gt; // Pick at the latest file&lt;BR /&gt; LET LatestFile = PEEK('FileName',0,'FileTableSrt');&lt;/P&gt;&lt;P&gt;You can then ORDER BY anything you want. Solution is clunky but works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;Dave.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 12:25:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sorting-the-filelist-function/m-p/231990#M83662</guid>
      <dc:creator />
      <dc:date>2010-08-20T12:25:29Z</dc:date>
    </item>
  </channel>
</rss>

