merakosp at gmail.com
Fri Aug 25 05:16:44 EDT 2023
See the example in the dictionary for the "headerClick" message:
on headerClick pColumnNumber
put the text of me into tText
put not sDirection[pColumnNumber] into sDirection[pColumnNumber]
set the itemDel to tab
# Sort data by this column.
if sDirection[pColumnNumber] then
sort lines of tText ascending by item pColumnNumber of each
sort lines of tText descending by item pColumnNumber of each
set the text of me to tText
On Fri, 25 Aug 2023 at 02:57, Paul Dupuis via use-livecode <
use-livecode at lists.runrev.com> wrote:
> The Polygrid, unlike the Datagrid, has no built in column sorting. You
> have to roll your own.
> Before I write my own, has anyone written a column sort (i.e click on a
> column header to sort by it) for a Poly grid they'd care to share?
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the use-livecode