unibasic’s sort function

FROM: http://u2-universe-unidata.1073795.n5.nabble.com/unibasic-s-sort-function-td25339.html

RE: unibasic’s sort function

Edward Brown
81 posts
The SORT function (which I’m embarrassed to say I didn’t think existed,
and I’ve been coding unibasic for the last 8 or 9 years!) sorts the data
passed into it; there isn’t a return value. So

SORT(LIST)
CRT LIST

does work. Your original program sets LIST to 0 because LIST is set to
the return result of the sort statement – perhaps this should throw a
compiler error? Or perhaps there’s an undocumented return code if the
data could not be sorted?

Edward

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s