I tried static, dynamic, etc. Perhaps server-side cursor? Security set to false, even though this is not an updating function. Merely a sort. Would it be more practical to sort the grid? Can you even sort a flexgrid? I use that for the search, rather than the rs.