I know how to create a sortable table using
theme('table', $headers, $rows)
but is it possible to create a functionality so that a content creator can create a sortable table inside a content. For example creating a sortable table inside a node.
If all you need is sorting on display, you can create a patch or your own module, and implement one of the jQuery plugins for sorting. Personally I found tablesorter to work pretty OK.
Draggable tables should be used wherever an outline or list of sortable items needs to be arranged by an end-user. Draggable tables are very flexible and can manipulate the value of form elements placed within individual columns.