<?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[Notepad++ Problem with sorting lines]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I have this line:</p>
<p dir="auto">Line1-10 - Art<br />
Line11-20 - Biology<br />
Line21-30 - Film<br />
Line31-40 - Geography<br />
Line41-50 - History<br />
Line51-60 - IT<br />
Line61-70 - Science<br />
Line71-80 - Sport</p>
<p dir="auto">This is what I need:</p>
<p dir="auto">Line1 - Art<br />
Line2 - Biology<br />
Line3 - Film<br />
Line4 - Geography<br />
Line5 - History<br />
Line6 - IT<br />
Line7 - Science<br />
Line8 - Sport<br />
Line9 - Art<br />
Line10 - Biology<br />
.<br />
.<br />
.<br />
.<br />
etc.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/16992/notepad-problem-with-sorting-lines</link><generator>RSS for Node</generator><lastBuildDate>Wed, 19 Aug 2026 18:12:15 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/16992.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 23 Jan 2019 02:00:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Notepad++ Problem with sorting lines on Wed, 23 Jan 2019 14:49:18 GMT]]></title><description><![CDATA[<p dir="auto">If you have a lot of lines, you may end up with space(s) between <code>Line</code> and the (first) number.  Use the following to remove those:</p>
<p dir="auto">Find <code>^Line\h+(?=\d)</code><br />
Replace <code>Line</code><br />
Again, search mode is Reg Exp</p>
]]></description><link>https://community.notepad-plus-plus.org/post/38816</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/38816</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 23 Jan 2019 14:49:18 GMT</pubDate></item><item><title><![CDATA[Reply to Notepad++ Problem with sorting lines on Wed, 23 Jan 2019 06:56:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/john-destiny" aria-label="Profile: John-Destiny">@<bdi>John-Destiny</bdi></a></p>
<p dir="auto">yes, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> 's suggestion seems to be the best and easiest way to do so.</p>
<p dir="auto">if you need help on the column editor:<br />
once you’ve run alan’s regex with “replace all”, hold the [alt] key and mark (draw) a cursor-line from the end of the first word <code>Line</code> to the end of the last word <code>Line</code> like shown at the screenshot below.</p>
<p dir="auto"><img src="https://i.imgur.com/fYA5mN3.png" alt="Imgur" class=" img-fluid img-markdown" /></p>
<p dir="auto">then open column editor, select number to insert, with initial number 1 and increase by 1, and hit ok.</p>
<p dir="auto"><img src="https://i.imgur.com/9d3yhju.png" alt="Imgur" class=" img-fluid img-markdown" /></p>
<p dir="auto">after that, you list will look like this.<br />
<img src="https://i.imgur.com/oJtFlmV.png" alt="Imgur" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/38797</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/38797</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Wed, 23 Jan 2019 06:56:53 GMT</pubDate></item><item><title><![CDATA[Reply to Notepad++ Problem with sorting lines on Wed, 23 Jan 2019 02:12:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/john-destiny" aria-label="Profile: John-Destiny">@<bdi>John-Destiny</bdi></a></p>
<p dir="auto">I would do:</p>
<p dir="auto">Find: <code>^Line\d+-\d+</code><br />
Replace: <code>Line</code><br />
Search mode: Reg Expression</p>
<p dir="auto">Then, follow that up with inserting a column of ascending digits (see the Column Editor on the View menu).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/38789</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/38789</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 23 Jan 2019 02:12:23 GMT</pubDate></item></channel></rss>