Sort dates in data-history list and pass over session id when publishing to restore data.