Re: [Fxruby-users] Sorting a FXTable
Status: Inactive
Brought to you by:
lyle
From: Lyle J. <ly...@kn...> - 2004-03-15 14:37:26
|
On Mar 11, 2004, at 3:53 PM, Jamey Cribbs wrote: > FXTable has a sort and a sort_by method. Well, yes, but it's getting those from Ruby's Enumerable module. FXTable, like some other widgets, mixes-in Enumerable. Since FXTable's each() method is aliased to FXTable#each_row, I guess that FXTable#sort is going to return a sorted array of table rows, where each table row is represented by an array of cells. It's questionable how useful that is ;) > Anyway, any light shed upon FXTable sorting would be greatly > appreciated! There's no FXTable equivalent for the sortItems() method. I think you'll have to roll your own on this one, possibly making use of the results returned by sort(). |