Add support for "sort" in cursor
Fix #6 Add sort support