reorder command line history and chat