API result not sorted when using Workflow Method

I created API that uses Workflow Method. When I assigned SortSet in API configuration I expected the result to be sorted. But is not.