Forum:Adding row numbers to table?

Has anyone implemented a way to add static row numbers to a sortable table, so that the rows are numbered sequentially regardless of the way the table is sorted?

Something like this approach on Wikipedia.