Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

How to sort Array Data using NATURAL

A program which demonstrates how to SORT an array. Note that the subscript is included in the sort.

This program demonstrates the fallacy of a common misconception regarding SORT, namely that it can only be used to SORT records. SORT is equally effective at SORTing an array. Yes, I know we could have had SORT in the READ loop.

We will assume, however, that there was actually some processing going on in the READ loop in addition to the initializing of our array of names.