add cursor query for results, Cursor using is subject to one constrant
that sort should be an unique key.