Quick Sort Algorithm. Step by step.

7
0
1
1
8
2
2
3
0
4
12
5
10
6
6
7
5
8
3
9
Step 1. Pivot value: 7   Swapping indexes: 2 and 9
7
0
1
1
3
2
2
3
0
4
12
5
10
6
6
7
5
8
8
9
Step 2. Pivot value: 7   Swapping indexes: 5 and 8
7
0
1
1
3
2
2
3
0
4
5
5
10
6
6
7
12
8
8
9
Step 3. Pivot value: 7   Swapping indexes: 6 and 7
7
0
1
1
3
2
2
3
0
4
5
5
6
6
10
7
12
8
8
9
Step 4. Pivot value: 7   Swapping indexes: 0 and 6
6
0
1
1
3
2
2
3
0
4
5
5
7
6
10
7
12
8
8
9
Step 5. Pivot value: 6   Swapping indexes: 0 and 5
5
0
1
1
3
2
2
3
0
4
6
5
7
6
10
7
12
8
8
9
Step 6. Pivot value: 5   Swapping indexes: 0 and 4
0
0
1
1
3
2
2
3
5
4
6
5
7
6
10
7
12
8
8
9
Step 7. Pivot value: 0   Swapping indexes: 0 and 0
0
0
1
1
3
2
2
3
5
4
6
5
7
6
10
7
12
8
8
9
Step 8. Pivot value: 1   Swapping indexes: 1 and 1
0
0
1
1
3
2
2
3
5
4
6
5
7
6
10
7
12
8
8
9
Step 9. Pivot value: 3   Swapping indexes: 2 and 3
0
0
1
1
2
2
3
3
5
4
6
5
7
6
10
7
12
8
8
9
Step 10. Pivot value: 10   Swapping indexes: 8 and 9
0
0
1
1
2
2
3
3
5
4
6
5
7
6
10
7
8
8
12
9
Step 11. Pivot value: 10   Swapping indexes: 7 and 8
0
0
1
1
2
2
3
3
5
4
6
5
7
6
8
7
10
8
12
9