<?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>Thu, 03 Sep 2026 16:12:40 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 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>