added sort to setPaths selectedItems testpath

If not sorted, the results won't compare with random ids.