internal static void SortTable(MetaDataTableVM mdTblVM, uint rid, uint count)
        {
            var buffer      = mdTblVM.Buffer;
            int len         = (int)count * mdTblVM.TableInfo.RowSize;
            var data        = new byte[len];
            var startOffset = mdTblVM.Span.Start + (rid - 1) * (ulong)mdTblVM.TableInfo.RowSize;

            buffer.ReadBytes(startOffset, data);
            TableSorter.Sort(mdTblVM.TableInfo, data);
            HexBufferWriterHelper.Write(buffer, startOffset, data);
        }
        static void ExecuteInternal(MDTableContext context)
        {
            var data = GetPasteData(context);

            if (data == null)
            {
                return;
            }

            var buffer = context.MetaDataTableVM.Buffer;
            int recs   = data.Length / context.MetaDataTableVM.TableInfo.RowSize;

            HexBufferWriterHelper.Write(buffer, context.Records[0].Span.Start, data);
        }