<?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[Line sorting not working in some cases]]></title><description><![CDATA[<p dir="auto">Hi all,<br />
the problem I have is that if I try to sort lines separated by just <strong>\n</strong> (instead of \r\n), Notepad++ doesn’t sort them because it sees them like a single block.</p>
<p dir="auto">In my opinion lines separated by just \n should be considered independent lines. Do you agree? Is it a bug?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/21162/line-sorting-not-working-in-some-cases</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 11:49:52 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/21162.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 14 May 2021 10:45:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Line sorting not working in some cases on Fri, 14 May 2021 15:15:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a> ,</p>
<blockquote>
<p dir="auto">Maybe it should also say what I said, how to convert the lines.</p>
</blockquote>
<p dir="auto"><a href="https://github.com/notepad-plus-plus/npp-usermanual/pull/219" rel="nofollow ugc">https://github.com/notepad-plus-plus/npp-usermanual/pull/219</a></p>
<p dir="auto">So the <strong>sort</strong> and <strong>duplicates</strong> EOL paragraphs now direct you to read <strong>EOL Conversion</strong> to find out how to do the fix, and the <strong>EOL Conversion</strong> paragraph mentions converting once or twice to fix the mixed-eol situation.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/65973</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/65973</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 14 May 2021 15:15:30 GMT</pubDate></item><item><title><![CDATA[Reply to Line sorting not working in some cases on Fri, 14 May 2021 13:04:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/3841">@PeterJones</a></p>
<p dir="auto">Cool that that kind of thing made it into the manual.<br />
Manual is getting better and better all the time.</p>
<p dir="auto">Does it go far enough, though?<br />
Maybe it should also say what I said, how to convert the lines.</p>
<p dir="auto">Nah, it’s OK, that would be redundant documenting because I’m sure there is also an independent place where EOL conversion is discussed.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/65972</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/65972</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 14 May 2021 13:04:25 GMT</pubDate></item><item><title><![CDATA[Reply to Line sorting not working in some cases on Fri, 14 May 2021 12:57:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/8136">@niente0</a> ,</p>
<p dir="auto">FYI, the next release of the <a href="http://npp-user-manual.org" rel="nofollow ugc">npp-user-manual.org</a> (which will go live after Notepad++ v7.9.6 releases) will include an extra description on the line-sorting features, making what <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/7377">@Alan-Kilborn</a> more obvious to those who actually look at the usermanual:</p>
<blockquote>
<p dir="auto">NOTE: Sorting is performed with the assumption that all line-endings in the file are uniform and match the current selection for the file being edited – the quickest way to check that selection is to glance at the status bar, where the current line-ending type is shown either as <code>Windows (CR LF)</code>, <code>Unix (LF)</code> or <code>Macintosh (CR)</code>.  It might be desirable to check the line-ending types in your file before executing a sorting operation.</p>
</blockquote>
]]></description><link>https://community.notepad-plus-plus.org/post/65971</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/65971</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 14 May 2021 12:57:24 GMT</pubDate></item><item><title><![CDATA[Reply to Line sorting not working in some cases on Fri, 14 May 2021 11:05:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/8136">@niente0</a></p>
<p dir="auto">Nope, no bug.</p>
<p dir="auto">It breaks the lines according to what your status bar says the line endings are.<br />
Example of that:<br />
<img src="/assets/uploads/files/1620990170171-0f8e8379-106c-4bd3-9a69-01062f17da8c-image.png" alt="0f8e8379-106c-4bd3-9a69-01062f17da8c-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">If you mix line ending types in your file, this is a bad thing that you shouldn’t do.  And yes, if that’s the case it will not sort like you want it to.</p>
<p dir="auto">The cure is to convert line endings to a different type than you want, then convert back to the type you do want.  Then you are safe to proceed with your sort.  See <em>Edit</em> menu &gt; <em>EOL Conversion</em></p>
]]></description><link>https://community.notepad-plus-plus.org/post/65966</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/65966</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 14 May 2021 11:05:40 GMT</pubDate></item></channel></rss>