Add sort command with swapping done