Thank you for your reply.
I understood the definition of  sorted .
What confuses me, is why the indices are not in the original order by default (when not sorting the values).
Are there any design reasons? Such as the non-determinism incurred by the parallelism.
But rerunning  topk  for servel times gave same results.