sort by variable

Discussion created by cortiel on Jun 29, 2017
Latest reply on Jun 29, 2017 by Jens Teich

i want to generically sort a column but not hardcode the fieldname but pass that name in as parameter from a button


this is in the column title. click on it and it should sort. if $$sort.direction = "ASC" descending and vice versa


to use the script generically I pass the column name form the button


but   the sort step only allows me to use a table::field


how areyou all doe that?