+ declare -a TOMB
+ TOMB=(9 8 7 6 5 4 3 2 1 33 11 32 12 17)
+ sort
+ number=14
+ comp=13
+ count=1
+ '[' 13 -gt 0 ']'
+ index=0
+ '[' 0 -lt 13 ']'
+ [[ 9 -gt 8 ]]
+ change 0 1
+ local temp=9
+ TOMB[$1]=8
+ TOMB[$2]=9
+ return
+ index=1
+ '[' 1 -lt 13 ']'
+ [[ 9 -gt 7 ]]
+ change 1 2
+ local temp=9
+ TOMB[$1]=7
+ TOMB[$2]=9
+ return
+ index=2
+ '[' 2 -lt 13 ']'
+ [[ 9 -gt 6 ]]
+ change 2 3
+ local temp=9
+ TOMB[$1]=6
+ TOMB[$2]=9
+ return
+ index=3
+ '[' 3 -lt 13 ']'
+ [[ 9 -gt 5 ]]
+ change 3 4
+ local temp=9
+ TOMB[$1]=5
+ TOMB[$2]=9
+ return
+ index=4
+ '[' 4 -lt 13 ']'
+ [[ 9 -gt 4 ]]
+ change 4 5
+ local temp=9
+ TOMB[$1]=4
+ TOMB[$2]=9
+ return
+ index=5
+ '[' 5 -lt 13 ']'
+ [[ 9 -gt 3 ]]
+ change 5 6
+ local temp=9
+ TOMB[$1]=3
+ TOMB[$2]=9
+ return
+ index=6
+ '[' 6 -lt 13 ']'
+ [[ 9 -gt 2 ]]
+ change 6 7
+ local temp=9
+ TOMB[$1]=2
+ TOMB[$2]=9
+ return
+ index=7
+ '[' 7 -lt 13 ']'
+ [[ 9 -gt 1 ]]
+ change 7 8
+ local temp=9
+ TOMB[$1]=1
+ TOMB[$2]=9
+ return
+ index=8
+ '[' 8 -lt 13 ']'
+ [[ 9 -gt 33 ]]
+ index=9
+ '[' 9 -lt 13 ']'
+ [[ 33 -gt 11 ]]
+ change 9 10
+ local temp=33
+ TOMB[$1]=11
+ TOMB[$2]=33
+ return
+ index=10
+ '[' 10 -lt 13 ']'
+ [[ 33 -gt 32 ]]
+ change 10 11
+ local temp=33
+ TOMB[$1]=32
+ TOMB[$2]=33
+ return
+ index=11
+ '[' 11 -lt 13 ']'
+ [[ 33 -gt 12 ]]
+ change 11 12
+ local temp=33
+ TOMB[$1]=12
+ TOMB[$2]=33
+ return
+ index=12
+ '[' 12 -lt 13 ']'
+ [[ 33 -gt 17 ]]
+ change 12 13
+ local temp=33
+ TOMB[$1]=17
+ TOMB[$2]=33
+ return
+ index=13
+ '[' 13 -lt 13 ']'
+ comp=12
+ count=0
+ '[' 12 -gt 0 ']'
+ index=0
+ '[' 0 -lt 12 ']'
+ [[ 8 -gt 7 ]]
+ change 0 1
+ local temp=8
+ TOMB[$1]=7
+ TOMB[$2]=8
+ return
+ index=1
+ '[' 1 -lt 12 ']'
+ [[ 8 -gt 6 ]]
+ change 1 2
+ local temp=8
+ TOMB[$1]=6
+ TOMB[$2]=8
+ return
+ index=2
+ '[' 2 -lt 12 ']'
+ [[ 8 -gt 5 ]]
+ change 2 3
+ local temp=8
+ TOMB[$1]=5
+ TOMB[$2]=8
+ return
+ index=3
+ '[' 3 -lt 12 ']'
+ [[ 8 -gt 4 ]]
+ change 3 4
+ local temp=8
+ TOMB[$1]=4
+ TOMB[$2]=8
+ return
+ index=4
+ '[' 4 -lt 12 ']'
+ [[ 8 -gt 3 ]]
+ change 4 5
+ local temp=8
+ TOMB[$1]=3
+ TOMB[$2]=8
+ return
+ index=5
+ '[' 5 -lt 12 ']'
+ [[ 8 -gt 2 ]]
+ change 5 6
+ local temp=8
+ TOMB[$1]=2
+ TOMB[$2]=8
+ return
+ index=6
+ '[' 6 -lt 12 ']'
+ [[ 8 -gt 1 ]]
+ change 6 7
+ local temp=8
+ TOMB[$1]=1
+ TOMB[$2]=8
+ return
+ index=7
+ '[' 7 -lt 12 ']'
+ [[ 8 -gt 9 ]]
+ index=8
+ '[' 8 -lt 12 ']'
+ [[ 9 -gt 11 ]]
+ index=9
+ '[' 9 -lt 12 ']'
+ [[ 11 -gt 32 ]]
+ index=10
+ '[' 10 -lt 12 ']'
+ [[ 32 -gt 12 ]]
+ change 10 11
+ local temp=32
+ TOMB[$1]=12
+ TOMB[$2]=32
+ return
+ index=11
+ '[' 11 -lt 12 ']'
+ [[ 32 -gt 17 ]]
+ change 11 12
+ local temp=32
+ TOMB[$1]=17
+ TOMB[$2]=32
+ return
+ index=12
+ '[' 12 -lt 12 ']'
+ comp=11
+ count=-1
+ '[' 11 -gt 0 ']'
+ index=0
+ '[' 0 -lt 11 ']'
+ [[ 7 -gt 6 ]]
+ change 0 1
+ local temp=7
+ TOMB[$1]=6
+ TOMB[$2]=7
+ return
+ index=1
+ '[' 1 -lt 11 ']'
+ [[ 7 -gt 5 ]]
+ change 1 2
+ local temp=7
+ TOMB[$1]=5
+ TOMB[$2]=7
+ return
+ index=2
+ '[' 2 -lt 11 ']'
+ [[ 7 -gt 4 ]]
+ change 2 3
+ local temp=7
+ TOMB[$1]=4
+ TOMB[$2]=7
+ return
+ index=3
+ '[' 3 -lt 11 ']'
+ [[ 7 -gt 3 ]]
+ change 3 4
+ local temp=7
+ TOMB[$1]=3
+ TOMB[$2]=7
+ return
+ index=4
+ '[' 4 -lt 11 ']'
+ [[ 7 -gt 2 ]]
+ change 4 5
+ local temp=7
+ TOMB[$1]=2
+ TOMB[$2]=7
+ return
+ index=5
+ '[' 5 -lt 11 ']'
+ [[ 7 -gt 1 ]]
+ change 5 6
+ local temp=7
+ TOMB[$1]=1
+ TOMB[$2]=7
+ return
+ index=6
+ '[' 6 -lt 11 ']'
+ [[ 7 -gt 8 ]]
+ index=7
+ '[' 7 -lt 11 ']'
+ [[ 8 -gt 9 ]]
+ index=8
+ '[' 8 -lt 11 ']'
+ [[ 9 -gt 11 ]]
+ index=9
+ '[' 9 -lt 11 ']'
+ [[ 11 -gt 12 ]]
+ index=10
+ '[' 10 -lt 11 ']'
+ [[ 12 -gt 17 ]]
+ index=11
+ '[' 11 -lt 11 ']'
+ comp=10
+ count=-2
+ '[' 10 -gt 0 ']'
+ index=0
+ '[' 0 -lt 10 ']'
+ [[ 6 -gt 5 ]]
+ change 0 1
+ local temp=6
+ TOMB[$1]=5
+ TOMB[$2]=6
+ return
+ index=1
+ '[' 1 -lt 10 ']'
+ [[ 6 -gt 4 ]]
+ change 1 2
+ local temp=6
+ TOMB[$1]=4
+ TOMB[$2]=6
+ return
+ index=2
+ '[' 2 -lt 10 ']'
+ [[ 6 -gt 3 ]]
+ change 2 3
+ local temp=6
+ TOMB[$1]=3
+ TOMB[$2]=6
+ return
+ index=3
+ '[' 3 -lt 10 ']'
+ [[ 6 -gt 2 ]]
+ change 3 4
+ local temp=6
+ TOMB[$1]=2
+ TOMB[$2]=6
+ return
+ index=4
+ '[' 4 -lt 10 ']'
+ [[ 6 -gt 1 ]]
+ change 4 5
+ local temp=6
+ TOMB[$1]=1
+ TOMB[$2]=6
+ return
+ index=5
+ '[' 5 -lt 10 ']'
+ [[ 6 -gt 7 ]]
+ index=6
+ '[' 6 -lt 10 ']'
+ [[ 7 -gt 8 ]]
+ index=7
+ '[' 7 -lt 10 ']'
+ [[ 8 -gt 9 ]]
+ index=8
+ '[' 8 -lt 10 ']'
+ [[ 9 -gt 11 ]]
+ index=9
+ '[' 9 -lt 10 ']'
+ [[ 11 -gt 12 ]]
+ index=10
+ '[' 10 -lt 10 ']'
+ comp=9
+ count=-3
+ '[' 9 -gt 0 ']'
+ index=0
+ '[' 0 -lt 9 ']'
+ [[ 5 -gt 4 ]]
+ change 0 1
+ local temp=5
+ TOMB[$1]=4
+ TOMB[$2]=5
+ return
+ index=1
+ '[' 1 -lt 9 ']'
+ [[ 5 -gt 3 ]]
+ change 1 2
+ local temp=5
+ TOMB[$1]=3
+ TOMB[$2]=5
+ return
+ index=2
+ '[' 2 -lt 9 ']'
+ [[ 5 -gt 2 ]]
+ change 2 3
+ local temp=5
+ TOMB[$1]=2
+ TOMB[$2]=5
+ return
+ index=3
+ '[' 3 -lt 9 ']'
+ [[ 5 -gt 1 ]]
+ change 3 4
+ local temp=5
+ TOMB[$1]=1
+ TOMB[$2]=5
+ return
+ index=4
+ '[' 4 -lt 9 ']'
+ [[ 5 -gt 6 ]]
+ index=5
+ '[' 5 -lt 9 ']'
+ [[ 6 -gt 7 ]]
+ index=6
+ '[' 6 -lt 9 ']'
+ [[ 7 -gt 8 ]]
+ index=7
+ '[' 7 -lt 9 ']'
+ [[ 8 -gt 9 ]]
+ index=8
+ '[' 8 -lt 9 ']'
+ [[ 9 -gt 11 ]]
+ index=9
+ '[' 9 -lt 9 ']'
+ comp=8
+ count=-4
+ '[' 8 -gt 0 ']'
+ index=0
+ '[' 0 -lt 8 ']'
+ [[ 4 -gt 3 ]]
+ change 0 1
+ local temp=4
+ TOMB[$1]=3
+ TOMB[$2]=4
+ return
+ index=1
+ '[' 1 -lt 8 ']'
+ [[ 4 -gt 2 ]]
+ change 1 2
+ local temp=4
+ TOMB[$1]=2
+ TOMB[$2]=4
+ return
+ index=2
+ '[' 2 -lt 8 ']'
+ [[ 4 -gt 1 ]]
+ change 2 3
+ local temp=4
+ TOMB[$1]=1
+ TOMB[$2]=4
+ return
+ index=3
+ '[' 3 -lt 8 ']'
+ [[ 4 -gt 5 ]]
+ index=4
+ '[' 4 -lt 8 ']'
+ [[ 5 -gt 6 ]]
+ index=5
+ '[' 5 -lt 8 ']'
+ [[ 6 -gt 7 ]]
+ index=6
+ '[' 6 -lt 8 ']'
+ [[ 7 -gt 8 ]]
+ index=7
+ '[' 7 -lt 8 ']'
+ [[ 8 -gt 9 ]]
+ index=8
+ '[' 8 -lt 8 ']'
+ comp=7
+ count=-5
+ '[' 7 -gt 0 ']'
+ index=0
+ '[' 0 -lt 7 ']'
+ [[ 3 -gt 2 ]]
+ change 0 1
+ local temp=3
+ TOMB[$1]=2
+ TOMB[$2]=3
+ return
+ index=1
+ '[' 1 -lt 7 ']'
+ [[ 3 -gt 1 ]]
+ change 1 2
+ local temp=3
+ TOMB[$1]=1
+ TOMB[$2]=3
+ return
+ index=2
+ '[' 2 -lt 7 ']'
+ [[ 3 -gt 4 ]]
+ index=3
+ '[' 3 -lt 7 ']'
+ [[ 4 -gt 5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 0 ']'
+ index=0
+ '[' 0 -lt 3 ']'
+ [[ 1 -gt 2 ]]
+ index=1
+ '[' 1 -lt 3 ']'
+ [[ 2 -gt 3 ]]
+ index=2
+ '[' 2 -lt 3 ']'
+ [[ 3 -gt 4 ]]
+ index=3
+ '[' 3 -lt 3 ']'
+ comp=2
+ count=-10
+ '[' 2 -gt 0 ']'
+ index=0
+ '[' 0 -lt 2 ']'
+ [[ 1 -gt 2 ]]
+ index=1
+ '[' 1 -lt 2 ']'
+ [[ 2 -gt 3 ]]
+ index=2
+ '[' 2 -lt 2 ']'
+ comp=1
+ count=-11
+ '[' 1 -gt 0 ']'
+ index=0
+ '[' 0 -lt 1 ']'
+ [[ 1 -gt 2 ]]
+ index=1
+ '[' 1 -lt 1 ']'
+ comp=0
+ count=-12
+ '[' 0 -gt 0 ']'
+ echo 1 2 3 4 5 6 7 8 9 11 12 17 32 33
+ command sort cki
+ sort cki
1 2 3 4 5 6 7 8 9 11 12 17 32 33
+ rm cki
1 2 3 4 5 6 7 8 9 11 12 17 32 33
