OpenMW/openmw — pull request #383 by scrawl (2014-11-30 21:17:52+00:00)
Title: Re-insert existing DialInfo records when they are modified by another content file

When a content file edits an existing dialogue response, this can change the next/prev linked list connections for that response. This change was not accounted for, and so the responses were being inserted in the wrong order. To fix it, we need to find a new list position for a DialInfo record whenever it has been edited.

According to my testing, the same fix needs to be applied to OpenCS, but I'm not sure how to do that, nor whether the timing is right (is dialogue merging even implemented yet?).
As a test case, download Necessities of Morrowind from http://mw.modhistory.com/download-35-12114, open Topic Info table, and check the order of responses using the !string(Topic, Beds) filter. Currently, it does not match the order seen in the TES-CS, presumably for the same reason that it was broken in OpenMW.
If no OpenCS developers are planning to tackle this at the moment, then I'll just create another issue report.