File SORT.FT (FORTRAN source file)

Directory of image this file is from
This file as a plain text file

	SUBROUTINE SORT(IARRY,LENGTH)
	DIMENSION IARRY(200),MIN(3),INTARRY(3)
	EQUIVALENCE (RMIN,MIN),(SUBJ,INTARRY)
	MIN(2)='  '
	MIN(3)='  '
	INTARRY(2)='  '
	INTARRY(3)='  '
	LIMIT=LENGTH-1
	DO 60 I=1,LIMIT
	MIN(1)=IARRY(I)
	LOWEST=I
	ISTART = I+1
	DO 50 J = ISTART,LENGTH
	INTARRY(1)=IARRY(J)
	IF(LEX(RMIN,SUBJ))50,50,10
 10	MIN(1)=IARRY(J)
	LOWEST=J
 50	CONTINUE
	IARRY(LOWEST)=IARRY(I)
	IARRY(I)=MIN(1)
 60	CONTINUE
	RETURN
	END



Feel free to contact me, David Gesswein djg@pdp8online.com with any questions, comments on the web site, or if you have related equipment, documentation, software etc. you are willing to part with.  I am interested in anything PDP-8 related, computers, peripherals used with them, DEC or third party, or documentation. 

PDP-8 Home Page   PDP-8 Site Map   PDP-8 Site Search