Fixes #1763 CSqlDataProvider order by bug
Merge pull request #1970 from szako/1763-CSqlDataProvider-order-by-bug

Fixes #1763 CSqlDataProvider order by bug