Publication: Syntax
Pub Details: Syntax/Syntax ZX80 v3 n7 (Volume 3, Issue 7)
Date: July 1982
Pages: 21
Dave Tabor of Menlo Park, CA, sent this version of Leo Morgan‘s sort routine (Oct.81). It’s two lines shorter and avoids Leo’s lines 80 and 130 by using an inverted space, which has a higher character code than any standard word. Add back prompts as in Leo’s program for a user-friendly routine.
10 INPUT N
15 DIM A$(N,20)
20 FOR I=1 TO N
25 INPUT A$(I)
30 NEXT I
40 FOR Y=1 TO N
45 LET F=1
50 FOR X=1 TO N
55 IF A$(F)>A$(X) THEN LET F=X
60 NEXT X
65 PRINT A$(F)
70 LET A$(F)="█"
75 NEXT Y
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.