note
hdb
<p>
Some hints how I would solve this:
<ol>
<li>Your date format <c>yyyy-mm-dd hh:mm:ss</c> is already suitable for lexographical sorting, no need to change the format.
<li>The date is the last 19 characters of each line, so it can be extracted easily using either a regex or substr.
<li>If you read line by line, don't forget to [doc://chomp];
<li>The Schwartzian Transform is one way to approach this. Read here: [id://1045598]
</ol>
</p>
<code>
</code>
1046336
1046336