Many thanks, that solved my problem. I have a related query – having now sorted on the hidden date column, the rows are now all sorted in the correct order (earliest date first) but they have all been shifted to the bottom of the table with blank rows above. Can I arrange these rows with earliest row at the top, next earliest in the next row and so on with blank rows below the last (latest date) entry?
Thanks for that, the “label” argument does indeed allow the button text to be customised. Thanks for the explanation.