if I look in the logfile of my Nuki, I find sometimes the info the door sensor has been opened before the info that the door has been unlocked. I think this is because it happend in the same minute (or second?). Maybe it is a good idea to write milliseconds in the logfile.
This can happen as the log file is written when the action is confirmed as finished. So if you unlock and immediatly open the door it can happen, that the door sensor state change is written before the lock state change is written to the log. We know that this can be confusing, but it is no simple change to improve this.