<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[sorting in folder as workspace]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I have two different versions of Notepad++ that I’m using:</p>
<ol>
<li>
<p dir="auto">Version 8.4.2 (64 bit) installed to C:\Program Files\Notepad++.</p>
</li>
<li>
<p dir="auto">Version 8.4.2 (64 bit) Portable located on a USB drive.</p>
</li>
</ol>
<p dir="auto">I use “folder as workspace” to view my files.</p>
<p dir="auto">When I am running on the full-install version of Notepad++ (on my C: drive) and viewing folder as workspace, the files and folders are sorted and appear correctly.</p>
<p dir="auto">When I’m running the portable version of Notepad++ (on my USB drive) and viewing folder as workspace (with files located on my USB drive), they are not sorted by alphabetical order.</p>
<p dir="auto">TL;DR -</p>
<p dir="auto">Installed version sorts folder as workspace correctly while portable version does not.</p>
<p dir="auto">Any suggestions for how to fix this?</p>
<p dir="auto"><img src="/assets/uploads/files/1657120928696-faw-local.png" alt="faw-local.png" class=" img-fluid img-markdown" /> <img src="/assets/uploads/files/1657120928657-faw-portable.png" alt="faw-portable.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/topic/23210/sorting-in-folder-as-workspace</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Jul 2026 12:30:55 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/23210.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 06 Jul 2022 15:22:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to sorting in folder as workspace on Fri, 21 Jul 2023 19:00:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> said in <a href="/post/88044">sorting in folder as workspace</a>:</p>
<blockquote>
<p dir="auto">issue should be created to recommend that Notepad++ do the sorting and unify behavior.</p>
</blockquote>
<p dir="auto">Indeed.  And make it like the Document List, where it will either present it unsorted (the default order based on the filesystem) or sorted ascending or sorted descending.  (Maybe even with the extra <code>Ext</code> column that Document List optionally provides, so that a user could sort by extension within a given subfolder in the FaW view.)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/88046</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/88046</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 21 Jul 2023 19:00:05 GMT</pubDate></item><item><title><![CDATA[Reply to sorting in folder as workspace on Fri, 21 Jul 2023 18:44:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mkupper" aria-label="Profile: mkupper">@<bdi>mkupper</bdi></a></p>
<p dir="auto">If Windows doesn’t provide the same order in all cases, and it doesn’t sound like it does, then it seems like an issue should be created to recommend that Notepad++ do the sorting and unify behavior.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/88044</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/88044</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 21 Jul 2023 18:44:50 GMT</pubDate></item><item><title><![CDATA[Reply to sorting in folder as workspace on Fri, 21 Jul 2023 18:33:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> said in <a href="/post/88003">sorting in folder as workspace</a>:</p>
<blockquote>
<p dir="auto">So, N++ seems to do some alpha sorting for me.</p>
</blockquote>
<p dir="auto">Or the test was done on an NTFS file system rather than an FAT or ExFAT file system. NTFS uses b-trees and FAT or ExFAT use indexes or lists for directories or folders.</p>
<p dir="auto">The list of files and sub-folders will always be sorted in alphabetical order on NTFS. It’s not quite the same alphabetical sorting order that Windows Explorer uses to display a list of files though… With  FAT and ExFAT the default order or more or less the order in which entries are added to a folder. When a file or sub-folder is deleted or moved somewhere else then it’s spot in the directory can be reused.</p>
<p dir="auto">I believe the command prompt’s <code>dir</code> command for all versions of Windows lists files in the the raw on-disk order.(*pesky asterisk, see below) If you use <code>dir /on</code> to sort by name it shows the order that you see in Windows Explorer.</p>
<p dir="auto">Notepad++'s folder as workspace thing seems to be using the unsorted order you would see with a plain <code>dir</code> command.</p>
<p dir="auto">* The <code>dir</code> command checks the <code>%DIRCMD%</code> environment meaning someone’s machine may well have <code>/on</code> enabled by default…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/88042</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/88042</guid><dc:creator><![CDATA[mkupper]]></dc:creator><pubDate>Fri, 21 Jul 2023 18:33:53 GMT</pubDate></item><item><title><![CDATA[Reply to sorting in folder as workspace on Thu, 20 Jul 2023 19:00:45 GMT]]></title><description><![CDATA[<p dir="auto">If I create <code>apple</code>, <code>carrot</code>, and <code>banana</code> in that order, and then open the containing folder in <em>FAW</em>, I get this on Windows 11 Pro:</p>
<p dir="auto"><img src="/assets/uploads/files/1689879617309-4ed7a0e9-020f-4592-a36c-a421c9e38a27-image.png" alt="4ed7a0e9-020f-4592-a36c-a421c9e38a27-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">So, N++ seems to do some alpha sorting for me.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/88003</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/88003</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 20 Jul 2023 19:00:45 GMT</pubDate></item><item><title><![CDATA[Reply to sorting in folder as workspace on Thu, 20 Jul 2023 13:37:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/christopherpow" aria-label="Profile: christopherpow">@<bdi>christopherpow</bdi></a> ,</p>
<p dir="auto">I am on a Win10 machine right now, so I cannot test.  But it would help if you could clarify:</p>
<ol>
<li>Share your <strong>?</strong>-menu’s <strong>Debug Info</strong> from both machines</li>
<li>On the Win10 machine, is the Folder that you are doing Folder As Workspace (FaW) on a Hard Drive (HDD, aka “old noisy hard drive”), Solid State Drive (SSD, aka “whisper mode drive”), on a mapped network drive, or on an external USB drive?</li>
<li>On the Win11 machine, is the Folder for FaW on a Hard Drive (HDD), Solid State Drive (SSD), on a mapped network drive, or on an external USB drive?</li>
</ol>
<p dir="auto">I still maintain, as I did a year ago, that the difference is the way the filesystem works on the various types of drives; a USB drive behaves differently than a HDD or SSD, and so when Notepad++ asks the OS to give it a list of files, the USB is presenting them in a different order than a HDD or SSD.</p>
<p dir="auto">If no one else has confirmed or contradicted your findings, when I get home after my workday today, I’ll see if I can test on a Win11 machine that I have access to SSD &amp; HDD &amp; USB.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/87995</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/87995</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 20 Jul 2023 13:37:35 GMT</pubDate></item><item><title><![CDATA[Reply to sorting in folder as workspace on Thu, 20 Jul 2023 02:18:45 GMT]]></title><description><![CDATA[<p dir="auto">I have Notepad++ 8.5.4 64-bit on both Win10 and Win11. In Win10 the files/folders in a “folder as workspace” are sorted alphabetically. In Win11 they are not. I’d very much like the behavior to be the same. Isn’t that possible?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/87986</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/87986</guid><dc:creator><![CDATA[christopherpow]]></dc:creator><pubDate>Thu, 20 Jul 2023 02:18:45 GMT</pubDate></item><item><title><![CDATA[Reply to sorting in folder as workspace on Wed, 06 Jul 2022 16:45:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a></p>
<p dir="auto">Yes, I believe you are correct. Thanks for helping me to troubleshoot this. I will try on a newer version of Windows and see if I have any more issues.</p>
<p dir="auto">Thanks for your help. Much appreciated.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/78206</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/78206</guid><dc:creator><![CDATA[James Trenton]]></dc:creator><pubDate>Wed, 06 Jul 2022 16:45:49 GMT</pubDate></item><item><title><![CDATA[Reply to sorting in folder as workspace on Wed, 06 Jul 2022 16:44:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/james-trenton" aria-label="Profile: James-Trenton">@<bdi>James-Trenton</bdi></a> ,</p>
<p dir="auto">As a reminder, Windows 7 is <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/SUPPORTED_SYSTEM.md" rel="nofollow ugc">no longer supported by Notepad++</a>, though it may still be able to run it.</p>
<p dir="auto">From what I know of USB filesystems, their sorting is much more “hardcoded” than a modern hard drive (HDD) or solid state drive (SSD).  Windows OS may choose to present the contents of a USB in a different order than it would present the contents of a similar folder structure on a HDD/SSD.  I think your problem is OS and filesystem related.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/78205</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/78205</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 06 Jul 2022 16:44:18 GMT</pubDate></item><item><title><![CDATA[Reply to sorting in folder as workspace on Wed, 06 Jul 2022 16:39:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> said in <a href="/post/78203">sorting in folder as workspace</a>:</p>
<blockquote>
<p dir="auto">You just contradicted yourself.</p>
</blockquote>
<p dir="auto">Sorry, I’m not trying to be confusing. I’m not describing my issue very clearly. Here are my test cases thus far:</p>
<ol>
<li>Running locally, viewing local files:</li>
</ol>
<ul>
<li>
<p dir="auto">launch “C:\Program Files\Notepad++\notepad++.exe”</p>
</li>
<li>
<p dir="auto">add C:\test directory to workspace. File sorting appears correctly (ascending alpha order).</p>
</li>
</ul>
<ol>
<li>Running Portable from USB drive, viewing USB files:</li>
</ol>
<ul>
<li>
<p dir="auto">launch “D:\Dev\npp.8.4.2.portable.x64notepad++.exe”</p>
</li>
<li>
<p dir="auto">add D:\test to workspace. File sorting appears correctly (ascending alpha order).</p>
</li>
<li>
<p dir="auto">add D:\Dev\servers\UniServerZ\www to workspace. File sorting does NOT appear correctly. (descending alpha order).</p>
</li>
</ul>
<p dir="auto">So, it seems to be directory-related. If I store the files in the root level at D:\test the sorting appears correct. But, if I choose a directory 4 levels deep, the sorting is in reverse order.</p>
<p dir="auto">This is an older Win 7 (64 bit) machine.</p>
<p dir="auto">I appreciate your help. I have learned some new info by researching this. Hopefully, I will be able to clarify the behavior more succinctly? Maybe it’s just a case of a Windows 7 bug?</p>
<p dir="auto">I’ll keep investigating.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/78204</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/78204</guid><dc:creator><![CDATA[James Trenton]]></dc:creator><pubDate>Wed, 06 Jul 2022 16:39:46 GMT</pubDate></item><item><title><![CDATA[Reply to sorting in folder as workspace on Wed, 06 Jul 2022 16:17:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/james-trenton" aria-label="Profile: James-Trenton">@<bdi>James-Trenton</bdi></a></p>
<blockquote>
<p dir="auto">if I use the installed version of Notepad++ (from C: drive ) to view the USB directory files via “folder as workspace” – it appears unsorted.</p>
</blockquote>
<p dir="auto">vs</p>
<blockquote>
<p dir="auto">It is only an issue when I’m running the Portable version of Notepad++.</p>
</blockquote>
<p dir="auto">You just contradicted yourself. If you run the installed Notepad++ and the FolderAsWorkspace of <code>USB\garden</code> is <s>not sorted</s> (or rather, reverse sorted), and run portable Notepad++ and FolderAsWorkspace of <code>USB\garden</code> is <em>also</em> <s>unsorted</s> (or rather, reverse sorted), which is what you’ve told us, then the problem is not with “portable” vs “installed”, because they act the same.</p>
<p dir="auto">The problem appears to be that on the USB stick, when Notepad++ asks for a directory listing, the OS gives it unsorted (or reverse sorted), whereas when you FaW on your c:\ drive, the OS tells Notepad++ the list in alphabetical sorted.</p>
<p dir="auto">So, as I said, the problem is the difference between c:\ and USB for the FaW, not the difference between portable and installed notepad++.  Unless I have misinterpreted what you’ve told us.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/78203</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/78203</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 06 Jul 2022 16:17:14 GMT</pubDate></item><item><title><![CDATA[Reply to sorting in folder as workspace on Wed, 06 Jul 2022 16:14:12 GMT]]></title><description><![CDATA[<p dir="auto">UPDATE:</p>
<p dir="auto">I checked again. It is sorting by alpha order (but, it is descending, instead of ascending).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/78201</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/78201</guid><dc:creator><![CDATA[James Trenton]]></dc:creator><pubDate>Wed, 06 Jul 2022 16:14:12 GMT</pubDate></item><item><title><![CDATA[Reply to sorting in folder as workspace on Wed, 06 Jul 2022 16:04:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a></p>
<p dir="auto">To answer your question — if I use the installed version of Notepad++ (from C: drive ) to view the USB directory files via “folder as workspace” – it appears unsorted.</p>
<p dir="auto">It’s not a major problem. I just thought that maybe there was some easy “sort” option that I was missing. But, if the app doesn’t do any sorting then it must be OS or USB related.</p>
<p dir="auto">I am doing a “trick” on my USB drive to allow for relative paths and changing drive letters.</p>
<p dir="auto">(Set shortcut target to: %windir%\explorer.exe “Dev\npp.8.4.2.portable.x64\notepad++.exe”)</p>
<p dir="auto">But, to eliminate this as a cause of the problem, I launched the app directly by clicking on the executable directly (avoiding the shortcut):</p>
<p dir="auto">D:\Dev\npp.8.4.2.portable.x64\notepad++.exe</p>
<p dir="auto">I had the same problem (folders/files are not appearing in alpha order).</p>
<p dir="auto">It is only an issue when I’m running the Portable version of Notepad++.</p>
<p dir="auto">I appreciate your help.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/78197</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/78197</guid><dc:creator><![CDATA[James Trenton]]></dc:creator><pubDate>Wed, 06 Jul 2022 16:04:45 GMT</pubDate></item><item><title><![CDATA[Reply to sorting in folder as workspace on Wed, 06 Jul 2022 15:38:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/james-trenton" aria-label="Profile: James-Trenton">@<bdi>James-Trenton</bdi></a> ,</p>
<p dir="auto">What happens if you use the installed Notepad++ instance to open the USB’s <code>garden\</code> folder as a workspace?  (Because if it is sorted on the local <code>garden</code> but not sorted on the USB <code>garden</code>, with the same installed copy of Notepad++, then it’s something to do with the filesystem on the USB stick, not with installed-vs-portable)</p>
<p dir="auto">I don’t think that the Folder as Workspace feature currently has sorting capability, so you might want to read the <a href="https://community.notepad-plus-plus.org/topic/15741/faq-desk-feature-request-or-bug-report">FAQ on how to make a feature request</a> if that’s a feature you’d want</p>
<p dir="auto"><strong>Addenda</strong>: For example, I just created a new <code>garden</code> folder and created <code>apple</code>, <code>carrot</code>, and <code>banana</code> subfolders (in that order) on my drive.  Then I opened the <code>garden</code> folder as Workspace in both installed and portable copy, and they both showed them as<br />
<img src="/assets/uploads/files/1657121866236-302d94a5-8bda-40ba-9159-48736025eeef-image.png" alt="302d94a5-8bda-40ba-9159-48736025eeef-image.png" class=" img-fluid img-markdown" /><br />
(My work machines prohibit USB drives, so I cannot test on a USB <code>garden</code> right now.)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/78188</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/78188</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 06 Jul 2022 15:38:55 GMT</pubDate></item></channel></rss>