! Keep getOrderBy compatible with the new framework version
! Fixed the refresh function, it passes on a cursor, not a record
! Fix for refresh()