If your DynaRange source is a subset, you can sort the subset by values returned by a query that you define in the data tab. You can set variables in this tab, so that this query has the same links to spreadsheet cells as your DATA functions in the DynaRange area.