<?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[ASCII Sort Order]]></title><description><![CDATA[<p dir="auto">I have a need to sort lines in ASCII sort order. Is there a way to do this in Notepad++?<br />
…lee</p>
<p dir="auto">Notepad++ v8.9   (64-bit)<br />
Build time: Dec 27 2025 - 14:28:33<br />
Scintilla/Lexilla included: 5.5.8/5.4.6<br />
Boost Regex included: 1_85<br />
TinyXML-2 included: 11.0.0<br />
nlohmann JSON included: 3.12.0<br />
Path: C:\Program Files\Notepad++\notepad++.exe<br />
Command Line: “C:\Program Files\Notepad++\localization\english.xml”<br />
Admin mode: OFF<br />
Local Conf mode: OFF<br />
Cloud Config: OFF<br />
Periodic Backup: ON<br />
Placeholders: OFF<br />
Scintilla Rendering Mode: SC_TECHNOLOGY_DEFAULT (0)<br />
Multi-instance Mode: monoInst<br />
asNotepad: OFF<br />
File Status Auto-Detection: cdEnabledNew (for current file/tab only)<br />
Dark Mode: OFF<br />
Display Info:<br />
primary monitor: 1920x1080, scaling 100%<br />
visible monitors count: 1<br />
installed Display Class adapters:<br />
0000: Description - AMD Radeon™ 860M Graphics<br />
0000: DriverVersion - 32.0.22068.0<br />
OS Name: Windows 11 Pro (64-bit)<br />
OS Version: 25H2<br />
OS Build: 26200.9168<br />
Current ANSI codepage: 1252<br />
Plugins:<br />
ComparePlugin (2.0.2)<br />
ComparePlus (2.2)<br />
mimeTools (3.1)<br />
NppConverter (4.7)<br />
NppExport (0.4)<br />
SessionMgr (1.4.4)</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/27648/ascii-sort-order</link><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Sep 2026 02:27:07 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/27648.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 03 Sep 2026 12:45:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ASCII Sort Order on Thu, 03 Sep 2026 22:09:57 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>, Thank you for your considered (and considerate) engagement. I actually hesitated to respond with my comment about the 70s and 80s, pretty sure I would get what you gave, but I couldn’t resist—I’m old (83 next month).</p>
<p dir="auto">Anyway, thanks again for putting up with me.     …lee</p>
]]></description><link>https://community.notepad-plus-plus.org/post/106243</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/106243</guid><dc:creator><![CDATA[leestwise]]></dc:creator><pubDate>Thu, 03 Sep 2026 22:09:57 GMT</pubDate></item><item><title><![CDATA[Reply to ASCII Sort Order on Thu, 03 Sep 2026 21:08:33 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/leestwise" aria-label="Profile: leestwise">@<bdi>leestwise</bdi></a> <a href="/post/106241">said</a>:</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a>, for your information, I had indeed tried lexicographical sorting before posting. I see now that I had jumped to a false conclusion when I did not see ‘ " ’ immediately following ‘ ! ’, which, of course, it couldn’t, seeing as how there were no words with a leading ‘ " ’.</p>
</blockquote>
<p dir="auto">I’m sorry you missed that in your first experiment.</p>
<blockquote>
<p dir="auto">Oh, and also for your information re “if you are still using 7-bit encoding… which you aren’t, and which hasn’t been really used since before the 80s”, I happen to be working on documentation for a system from the late 70s and early 80s.</p>
</blockquote>
<p dir="auto">Continuing my nitpicking: If you are editing the file in Notepad++, then you are editing it on a modern Windows machine, and thus the documentation file is using either one of the windows “character sets” (which are 8-bit encodings, most of which use the equivalent of ASCII for the lower 128 codepoints and then their own unique set of characters for the upper 128 codepoints).  But it is using, at minimum, 8-bit (256 position) encodings, which is definitionally not ASCII.  Talking about an ASCII system, and using only characters that are available in ASCII, does not necessarily mean you are <em>using</em> ASCII (which is a 7-bit system).  (In fact, you could document an ASCII system using an EBDIC encoding, if you desired to be so ironic.)</p>
<p dir="auto">But my comment about the technicalities of ASCII was all nitpicking on my part, born out of frustration that you ignored my first answer because I didn’t bother explaining how the punctuation fit into the sorting.  (If your original post had indicated that you cared how punctuation was sorted, I would have been more explicit.)</p>
<blockquote>
<p dir="auto">Sorry to have bothered you.</p>
</blockquote>
<p dir="auto">I am sorry that your initial experiment had lead you to a wrong conclusion.</p>
<p dir="auto">And I am sorry that, when you used that wrong conclusion to answer me, I allowed myself to be triggered and switch into my nitpicking mode.</p>
<p dir="auto">In general, it is in my nature to want to help people (that is the entire reason that I am a regular contributor here)… but when people ask for help, and then it appears they ignore or reject the effort that I went into helping them, I don’t always respond perfectly (I am only human, after all).  So I am sorry for any rudeness, real and perceived, that came as a result of my bad reactions.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/106242</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/106242</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 03 Sep 2026 21:08:33 GMT</pubDate></item><item><title><![CDATA[Reply to ASCII Sort Order on Thu, 03 Sep 2026 19:51:17 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>, for your information, I had indeed tried lexicographical sorting before posting. I see now that I had jumped to a false conclusion when I did not see ‘ " ’ immediately following ‘ ! ’, which, of course, it couldn’t, seeing as how there were no words with a leading ‘ " ’. Oh, and also for your information re “if you are still using 7-bit encoding… which you aren’t, and which hasn’t been really used since before the 80s”, I happen to be working on documentation for a system from the late 70s and early 80s. Sorry to have bothered you.</p>
<p dir="auto">…lee</p>
]]></description><link>https://community.notepad-plus-plus.org/post/106241</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/106241</guid><dc:creator><![CDATA[leestwise]]></dc:creator><pubDate>Thu, 03 Sep 2026 19:51:17 GMT</pubDate></item><item><title><![CDATA[Reply to ASCII Sort Order on Thu, 03 Sep 2026 15:39:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/leestwise" aria-label="Profile: leestwise">@<bdi>leestwise</bdi></a> ,</p>
<p dir="auto">Lexicographical sorts by codepoint.  Which, in your limited terminology, could be considred “ASCII”: technically, that’s only “ASCII” if you are still using 7-bit encoding… which you aren’t, and which hasn’t been <em>really</em> used since before the 80s (even in the 80s, when they still used the label “ASCII”, it was actually an 8-bit encoding which overlapped with ASCII for the first 128 codepoints)</p>
<p dir="auto">So if I start with the random order of the characters that you showed in your list on the left of the image, then apply lexicographical sorting will result in the order on the left, which is exactly what you want.</p>
<p dir="auto"><img src="/assets/uploads/files/1788449119817-6319df59-bb8d-490f-96b7-50f73724bd00-image.jpeg" alt="6319df59-bb8d-490f-96b7-50f73724bd00-image.jpeg" class=" img-fluid img-markdown" /></p>
<p dir="auto">It saddens me that you assumed my answer was wrong, before trying it yourself and seeing that yes, indeed, it did exactly what you wanted.</p>
<hr />
<p dir="auto"><em>update: fixed the image: the first time, it copied your ’ as the smartquote <code>’</code> instead of the ASCII <code>'</code>, so it sorted later (because smart-single-quote has a later codepoint than any character from the ASCII set).  I didn’t notice until after I’d posted that it put the smart ’ at the end of the list; that was caused by a limitation of the forum, <strong>not</strong> of Notepad++'s sorting</em></p>
]]></description><link>https://community.notepad-plus-plus.org/post/106240</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/106240</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 03 Sep 2026 15:39:13 GMT</pubDate></item><item><title><![CDATA[Reply to ASCII Sort Order on Thu, 03 Sep 2026 15:13:54 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>, that much is true, but not true enough. ASCII sort order is the order in which the ASCII characters are coded from ASCII 32 (space) to ASCII 127 (~). This is the order I need:<br />
! " # $ % &amp; ’ ( ) * + , - . / digits : ; &lt; = &gt; ? @ ALPHA [ \ ] ^ _ ` alpha { | } ~</p>
<p dir="auto">…lee</p>
]]></description><link>https://community.notepad-plus-plus.org/post/106239</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/106239</guid><dc:creator><![CDATA[leestwise]]></dc:creator><pubDate>Thu, 03 Sep 2026 15:13:54 GMT</pubDate></item><item><title><![CDATA[Reply to ASCII Sort Order on Thu, 03 Sep 2026 15:07:03 GMT]]></title><description><![CDATA[<p dir="auto">By “ASCII” sort, I am assuming you mean A-Z comes before a-z.  If so, that is known as <a href="https://npp-user-manual.org/docs/editing/#edit-menu:~:text=smallest%20%28Z%2DA%29-,Lexicographically,-%28or%20Lex" rel="nofollow ugc">“lexicographical” sort</a>, which is one of the many sorting options in the <strong><a href="https://npp-user-manual.org/docs/editing/#edit-menu:~:text=%E2%87%92%20StaRt%20mIxeD-,Line%20Operations,-%3E%20%E2%87%92%20submenu%20with" rel="nofollow ugc">Edit &gt; Line Operations</a></strong> menu</p>
]]></description><link>https://community.notepad-plus-plus.org/post/106238</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/106238</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Thu, 03 Sep 2026 15:07:03 GMT</pubDate></item></channel></rss>