Lists. Need a bit of help

Thanks.

Ok, bit more information for you.

I get that the names in the file are confusing for sorting.
It isn't I want to sort them. That isn't needed. The lines are added in time order to the file.

I tried it with tac rather than cat and though it works...... Because the list on the screen is limited in size: the latest events are pushed off the top of the list by the older ones at the bottom, which isn't desirable.

So basically they are sorted.

But when I put them into that flow, the bottom is the newest and . . . (I've already said that. Oops.)

Looking at you suggesting (I believe) the array.prototype.reverse() option.
I don't know how/where to add it. I need a bit more of a hint.

I'm guessing in the template node, but......