sorted=True will make sure that the results are indeed sorted. Setting it to False does not “unsort” them, but doesn’t guarantee they will be sorted (they still could be depending on the backend implementation).