<?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[Lexicographically ascending with index]]></title><description><![CDATA[<p dir="auto">Hello, how can we retrieve the index values of the ascending sort data while performing a lexicographical ascend?<br />
For example:</p>
<pre><code>cat
ant
bat
elephant
dog
</code></pre>
<p dir="auto">will get sorted as</p>
<pre><code>ant
bat
cat
dog
elephant
</code></pre>
<p dir="auto">but how to get the index values of this sort, i.e.</p>
<pre><code>2
3
1
5
4
</code></pre>
<p dir="auto">Thanks.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/22429/lexicographically-ascending-with-index</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Jul 2026 22:42:08 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/22429.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 25 Jan 2022 03:48:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Lexicographically ascending with index on Wed, 26 Jan 2022 03:12:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/neil-schipper" aria-label="Profile: neil-schipper">@<bdi>neil-schipper</bdi></a> Thanks.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/73318</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73318</guid><dc:creator><![CDATA[Amazon Books]]></dc:creator><pubDate>Wed, 26 Jan 2022 03:12:27 GMT</pubDate></item><item><title><![CDATA[Reply to Lexicographically ascending with index on Wed, 26 Jan 2022 03:11:39 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> Many thanks.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/73317</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73317</guid><dc:creator><![CDATA[Amazon Books]]></dc:creator><pubDate>Wed, 26 Jan 2022 03:11:39 GMT</pubDate></item><item><title><![CDATA[Reply to Lexicographically ascending with index on Tue, 25 Jan 2022 14:35:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/amazon-books" aria-label="Profile: amazon-books">@<bdi>amazon-books</bdi></a></p>
<p dir="auto">Elaborating on Neil’s reply:</p>
<p dir="auto">Hold Alt while left-clicking on the first line, in the whitespace out to the far right (in a column number greater than the length of the longest line you are going to sort), and then drag down in the same column, to get a “selection” that looks like this:</p>
<p dir="auto"><img src="/assets/uploads/files/1643121159650-652a3399-39d8-4898-8214-b77786a0132a-image.png" alt="652a3399-39d8-4898-8214-b77786a0132a-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Press Alt+c and set up the box that appears like this:</p>
<p dir="auto"><img src="/assets/uploads/files/1643121203470-b6437006-8c5f-405c-893c-8849c89a4c6d-image.png" alt="b6437006-8c5f-405c-893c-8849c89a4c6d-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Press OK and your data will be transformed like this:</p>
<p dir="auto"><img src="/assets/uploads/files/1643121258944-fa01a760-ddae-4603-95a7-61e96c0be22a-image.png" alt="fa01a760-ddae-4603-95a7-61e96c0be22a-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Do your sort to obtain:</p>
<p dir="auto"><img src="/assets/uploads/files/1643121309524-5b41c902-ad98-44a3-957b-2b4e1f8b7ac2-image.png" alt="5b41c902-ad98-44a3-957b-2b4e1f8b7ac2-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/73288</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73288</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 25 Jan 2022 14:35:42 GMT</pubDate></item><item><title><![CDATA[Reply to Lexicographically ascending with index on Tue, 25 Jan 2022 10:15:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/amazon-books" aria-label="Profile: amazon-books">@<bdi>amazon-books</bdi></a> You can insert a column of ascending numbers to the right of your text. See Edit|Column Editor.</p>
<p dir="auto">After sorting, you can use column select (Alt-mouse, or Alt-Shift-arrows) and cut, and perhaps Edit|Blank Operations|Trim Trailing to clean up.</p>
<p dir="auto">What you’re trying to do is done much more naturally in a spreadsheet.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/73273</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73273</guid><dc:creator><![CDATA[Neil Schipper]]></dc:creator><pubDate>Tue, 25 Jan 2022 10:15:24 GMT</pubDate></item><item><title><![CDATA[Reply to Lexicographically ascending with index on Tue, 25 Jan 2022 07:17:52 GMT]]></title><description><![CDATA[<p dir="auto">No, not like this.<br />
The list is linguistic-only, made of words, not numbers.<br />
‘Ant’ is at line#2, hence when the list of animals is sorted alphabetically, it rises to the top and occupies position#1. However, in the original list, its index-value was 2. How to recover this index value?<br />
Similarly, the word ‘Dog’ was at line#5 before sorting. After sort, its position is at line#4. How to get the information that its original index-value was 5?<br />
Here is the table of new versus old index-values of the given animal list:</p>
<pre><code>new   old
1      2
2      3
3      1
4      5
5      4
</code></pre>
<p dir="auto">How can we get this table? The list to be sorted is non-numerical, containing only words.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/73269</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73269</guid><dc:creator><![CDATA[Amazon Books]]></dc:creator><pubDate>Tue, 25 Jan 2022 07:17:52 GMT</pubDate></item><item><title><![CDATA[Reply to Lexicographically ascending with index on Tue, 25 Jan 2022 04:29:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/amazon-books" aria-label="Profile: amazon-books">@<bdi>amazon-books</bdi></a><br />
The same way you’s sort the word list. Using your list of numbers, I just sorted it Lexicographically Ascending as the screenshots show.<br />
<img src="/assets/uploads/files/1643084903935-lexnumbers1.png" alt="LexNumbers1.PNG" class=" img-fluid img-markdown" /></p>
<p dir="auto">Using the Edit Menu:<br />
<img src="/assets/uploads/files/1643084936480-lexnumbers2.png" alt="LexNumbers2.PNG" class=" img-fluid img-markdown" /></p>
<p dir="auto">And Viola:<br />
<img src="/assets/uploads/files/1643084965840-lexnumbers3.png" alt="LexNumbers3.PNG" class=" img-fluid img-markdown" /></p>
<p dir="auto">Lee</p>
]]></description><link>https://community.notepad-plus-plus.org/post/73266</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73266</guid><dc:creator><![CDATA[Lycan Thrope]]></dc:creator><pubDate>Tue, 25 Jan 2022 04:29:49 GMT</pubDate></item></channel></rss>