Sorting: sorted_index_list(): removed goto statements

* Sorting: sorted_index_list(): removed goto statements:
  * use (indefinite) do loops, cycle and exit instead