We have a file full of several days-worth of lab results bound for a particular vendor. The file was created via dump of the recovery database following a server crash and prior to a db init. Unfortunately, the messages are in order of however which way the db chose to stick them in there rather than based on timestamp.
I’ve spoken to the vendor and they’ve indicated that the messages absolutely need to be sent the right date/time order. In other words, they will start erroring out if they do a zigzag through the four days the file covers — and, let’s just say that massive errors from them leads to no where good.
I’ve been looking around for some sort of tool to sort the messages in the file and haven’t seen one, though I was sure I couldn’t be the first one who’d come across this problem. If anyone can share either some advise or some code, I’d appreciate it.
Meanwhile, I’ll be working on simulating a tcl array of messages and trying to remember my best sorting algorythm.
Thanks in advance!