Want to skip to the implementation? Check out these examples:
Row Pinning API
There are 2 table features that can reorder rows, which happen in the following order: