this is more what i’m concerned. i’ll give it a shot and let you know.
thanks.
> On Jun 30, 2022, at 7:26 PM, Bob Sneidar via use-livecode
> wrote:
>
>
> put the dgText of group "myDataGrid" into tText
> set the itemDelimiter to tab
>
> repeat with i = 1 to the number of lines of tText
> p
Or are you talking about sorting the DATA of a datagrid?
put the dgText of group "myDataGrid" into tText
set the itemDelimiter to tab
repeat with i = 1 to the number of lines of tText
put item i of tText into tLine
sort items of tLine ascending
put tLine into line i of tText
end repeat
Sure there is!
put the dgProp ["columns"] of group myDatagrid into tGridColumns
sort tGridColumns ascending
set the dgProp ["columns"] of group myDataGrid to tGridColumns
I would store the original sort order first though so you can recover.
Bob S
> On Jun 30, 2022, at 15:59 , Hershel F via