patch from Michal Gawrycki - see 0026325: Proposition: RxDBGrid and AutoSort without sort engine

git-svn-id: http://svn.code.sf.net/p/lazarus-ccr/svn@3168 8e941d3f-bd1b-0410-a28a-d453659cc2b4