Use the quicksort algorithm to rearrange the following numbers into ascending order, showing the new arrangement after each pass. You must indicate the pivot(s) being used on each pass.
$$2 , \quad 12 , \quad 17 , \quad 18 , \quad 5 , \quad 13$$
For the first pass, write down the number of comparisons.