> Although Tyler's version and Saq's version are named differently, and
> Saq claims to be the author of his and documents it differently, it
> does seem that they have an awful lot in common (not really having
> reviewed the code, but judging from the examples [near identical] and
> how they behave). Is it entirely fair of Saq to claim ownership of his
> version..?
Having actually *looked* at the code for SortableGridPlugin (SGP) and
TableSortingPlugin (TSP), I can definitely see some similarities.
However, there is a good reason for this: the code in *both* plugins
seem to be based, in part, on the work of Stuart Langridge, who
published a widely-reproduced solution for javascript-based sortable
tables, back in 2003 (long before TiddlyWiki even existed).
As a result of this common ancestry, both SGP and TSP share several
key aspects that are inherited from Langridge's original
implementation and documentation. For example, the contents in the
sample tables (e.g., "Bloggs, Fred"... etc.) are "nearly identical"
because both were apparently copied and adapted from the sample data
shown in Langridge's 2003 original posting.
In addition, both plugins use the same syntax for adding a CSS
classname ("|sortable|k") to the table, as well as the syntax for
designating a 'heading' row ("|foo|bar|baz|h"). This is because
Langridge's code also uses the "sortable" CSS classname and the <th>
(table heading) element to specify and control sorting on the columns
in a table.
There are also similar 'code patterns' used in some funtions of both
plugins. However, this would be the natural consequence of both
plugin authors adapting Langridge's original implementation for use in
TiddlyWiki, and I don't think it represents any illicit borrowing from
each other.
One major difference worth noting is the *size* of each plugin:
SortableGridPlugin weighs in at 15986 bytes, while TableSortingPlugin,
is only 5849 bytes. Given that both provide the same functionality,
the obvious choice is for the smaller implementation.
-e