Merge pull request #2236 from bartcharbon/master

Ticket 3058: sort in R api + fix annotators
fix error in case of no sorting column and  or order