Hi Norberto,
Unfortunately you are right.
You cannot sort the results you have using the searchTasks service.
That is why, when creating a task application the sort is done on the CAF table component and associated provider and not on the actual DB.
Actually here there is a predefined sort in place (I think it is after task id).
If you want to be able to sort I recommend using the searchTasksIndexed service which allows you to specify the field you want to sort by (sortBy) and the sort order (sortOrder): ASC or DESC.
For searchTasksIndexed to work your tasks have to be indexed.
If you search only after the priority or other task info fields you can try searchTasksIndexed service. It might work even if your tasks are not indexed.
Cheers,
Vlad Turian
#Integration-Server-and-ESB#webMethods