Skip to content

Latest commit

 

History

History
8 lines (5 loc) · 520 Bytes

File metadata and controls

8 lines (5 loc) · 520 Bytes

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.