Test and fix history command ordering

Docker-DCO-1.1-Signed-off-by: Bryan Murphy bmurphy1976@gmail.com (github: bmurphy1976)