Sorting: sorted_index_list(): replace all single-letter variables

* Sorting: sorted_index_list(): replace all single-letter variables
  * a, i,j,k,l,m -> arr_i, ii,jj,kk,ll,mm
  * make it easier to find them