sort cmds as a timeline