Perl Monk, Perl Meditation | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
As for the input rows, I would expect the caller to have a far superior ability to split out the columns. Taking in an array for each row rather than a string makes more sense to me. Passing in a two dimensional array to fill the whole chart at once would also be a common use case I think. Have you considered taking in an array of sub refs to use as the sorting algorithm for each corresponding field? You could then either apply the arbitrary algorithm associated with the column being sorted, or if the ref is undef, then make a best guess. PS: It might be a nice feature to make each cell be a reference to the original input data so that an external change will be reflected in the table automatically on the next repaint, without having to pass everything in again from scratch and rebuild the table. In reply to Re: RFC: General Purpose Autosort Framework - going south...
by SuicideJunkie
|
|