The top row in tables in pages could be a header that is sortable (similar to Excel or Google Sheets). Then you could sort the content of a table according to the headers.