It sorts the array by the difference between the number stored in the list C with the index passed to the parameter j and the number stored in the list C with the index passed to the parameter i.
C
j
i