fixed sorting of messages
save userid with message for later use