sort container parameters
Paul Dupuis
paul at researchware.com
Tue Mar 2 16:55:46 EST 2021
I just discovered much to my dismay that you can not execute the following:
put "ascending" into tDirection
soft lines of tContainer tDirection international
apparently neither the sort direction (ascending|descending) nor the
sort type (international|text|datetime|numeric|binary) can be variable!
That means if you want to parameterize a sort direction, you have to do
something like:
if tDirection is "ascending" then
sort lines of tContainer ascending international
else
sort lines of tCOntainer descending international
end if
I see this a a bug or perhaps a failure to fully robust impliment the
sort container command? Does any one else see this as a bug?
I suppose I could work around it with a "do" but that seems like a cludge
do ("sort line of tContainer" && tDirection && tSortType)
Thoughts? Comments? Opinions? Am I expecting too much of LiveCode to
have sort direction and type actual parameters?
More information about the use-livecode
mailing list