however even after sorting the data when i use this code
the data does not get saved in my new sorted order .
i assume this is becasue the index for each item is what it goes by when saving
Code: Select all
///////// SAVE DATA FUNCTION ////////////////////////
command save_data
local tFile
## Save content of datagrid to file:
put the dgtext of grp "DataGrid" into tVariable
## Create allowed pathname:
put specialFolderPath("Documents") & "/saved_data.text" into tFile
put tVariable into url("file:" & tFile)
## the result is EMPTY on success!
if the result <> EMPTY then
answer "Error:" && the result
end if
end save_data
/////////////////////////////////////////////////////////////
how do i reindex my newly sorted data so it can be exported the same .