Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!
on MouseUp
dispatch "SortDataByKey" to group "DataGrid_Att_h_fasce" with "Ospedale", "text", "Ascending", "false"
dispatch "RefreshList" to group "DataGrid_Att_h_fasce"
end MouseUp
I would however leave out the last line, because the last parameter of SortDataByKey
defines if RefreshList is also applied to the datagrid after sorting
dispatch “SortDataByKey” to grp "PracticeList_DG" with "More", "international", "descending", "false"
on FillInData pDataArray
set the text of fld "Name" of me to pDataArray["Name"]
set the text of fld "More" of me to pDataArray["PreformanceLevel"]
end FillInData
I figured it out. I have thumb nail images in the DG. This, for some reason, stops the sort from happening. I submitted a bug report. Thanks for the reply. For now I'll remove the images.
I got the sort, sorted out. But I have another question. When I sort on a key (ascending) where some of the entries are empty, the empty ones are at the top. Is there a way to sort ascending and have the empty values at the bottom?