<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Michael and list,<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 12, 2024 at 11:48 AM Michael.Dodd <<a href="mailto:michael.dodd@open.ac.uk">michael.dodd@open.ac.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg5832436646906369254">





<div lang="EN-GB" style="overflow-wrap: break-word;">
<div class="m_5832436646906369254WordSection1">
<p class="MsoNormal"><span style="font-size:11pt">In this particular instance the data are not spatial data, at this stage at least. There is no link to location.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">The data does have a hierarchy according to several columns, by sorting I can put the data into a suitable order for editing in further information into an extra column. Without
 sorting the places where the extra info and which specific extra info are impossible to find and check as they are scattered all over.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">I tried putting the information in using the field calculator and even though the simple expression seemed correct and there was no error message it did not put the information in.
 So I was even thinking of putting the information in by hand once sorted although suspect there may be issues with this too.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">I was wondering about sorting the whole file then copying out/exporting chunks of a million rows at a time to go into a normal spreadsheet. If the copying out/export would not work
 directly then saving the sorted version of the data and chopping up using e.g. notepad++ and editing with spreadsheet. It is important to do the sorting before chopping up into the 5 separate files.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">It is only later that spatial information is attached, that is not relevant at this stage as the spatial data will not be attached to all rows.</span></p><div><div><div><p class="MsoNormal"><u></u><u></u></p>
</div>
</div>
</div>
<p></p></div></div></div></blockquote><div><br></div><div>Ok so you are sorting a text file, presumably something like a .CSV.  Perhaps you are working on Windows.</div><div><br></div><div>What are your options to sort the file before you put it in QGIS?  It seems your spreadsheet won't accommodate the number of lines in your file; what about the "sort" utility in say Windows PowerShell?</div><div><br></div><div>Here's an article that talks about sorting .CSV files that way.<br></div><div><br></div><div><a href="https://stackoverflow.com/questions/23603397/sorting-csv-using-windows-sort">https://stackoverflow.com/questions/23603397/sorting-csv-using-windows-sort</a> which in turn refers to this article</div><div><br></div><div><a href="https://devblogs.microsoft.com/scripting/hey-scripting-guy-how-can-i-use-windows-powershell-to-sort-a-csv-file/">https://devblogs.microsoft.com/scripting/hey-scripting-guy-how-can-i-use-windows-powershell-to-sort-a-csv-file/</a></div><div><br></div><div>Alternatively, if you're using Linux or (I would imagine) OS/X, you can use the Posix "sort" utility.<br></div></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr">Chris Hermansen · clhermansen "at" gmail "dot" com<br><br>C'est ma façon de parler.</div></div></div></div></div>