How to sort a keyed structure, read from .txt file or URL??

PeMo's picture

I'm attempting to chart data retrieved from a server, running tests using a URL & also similar data in a .txt file.

Using the Text File Importer (rdqcutils) patch (https://code.google.com/p/rdqcutils/) I can successfully import data - but as a weirdly unordered keyed structure - so my question is: what is an efficient way of ordering the keyed structure, given that the keys refer to the line numbers in the original .txt file?

I've attached a demo comp (needs Kineme File tools & rdqcutils) and .txt data file if anyone with experience of this issue has a moment to have a look and make a suggestion! Thanks in advance - I've not been having much luck with solving this, so far. I've also tried Climb CSV importer, but this will make an impossibly large struct to manage, due to the way it parses the data.

PreviewAttachmentSize
thredds_test1.qtz30.16 KB
unordered by keys.png
unordered by keys.png243.66 KB

PeMo's picture
Re: How to sort a keyed structure, read from .txt file or URL??

Oops - forgot to append the data file:

PreviewAttachmentSize
cpso2010_h1.txt963 bytes