--- title: "Program Improvements: Sort Routine" type: "article" slug: "program-improvements-sort-routine" url: "http://localhost/article/program-improvements-sort-routine/" markdown_url: "http://localhost/article/program-improvements-sort-routine.md" published_at: "2026-03-13T00:22:08+00:00" modified_at: "2026-03-13T00:22:39+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "Shortened version of Leo Morgan's string sort routine from Oct. 1981, reducing it by two lines by using an inverted space character (higher code than any standard character) to eliminate boundary-checking lines." category: - name: "Syntax" slug: "syntax" taxonomy: "category" url: "http://localhost/category/periodicals/syntax/" post_tag: - name: "BASIC (programming language)" slug: "basic-programming-language" taxonomy: "post_tag" url: "http://localhost/tag/basic-programming-language/" - name: "TS 1000" slug: "ts1000" taxonomy: "post_tag" url: "http://localhost/tag/ts1000/" - name: "Type-in program" slug: "type-in-program" taxonomy: "post_tag" url: "http://localhost/tag/type-in-program/" model: - name: "Timex/Sinclair 1000" slug: "ts-1000" taxonomy: "model" url: "http://localhost/model/ts-1000/" indiv: - name: "Dave Tabor" slug: "dave-tabor" taxonomy: "indiv" url: "http://localhost/indiv/dave-tabor/" publication_r: id: 10246 title: "Syntax" type: "periodical" url: "http://localhost/periodical/syntax/" authors_r: - name: "Dave Tabor" slug: "dave-tabor" taxonomy: "indiv" url: "http://localhost/indiv/dave-tabor/" volume: "3" issue: "7" issues_articles: - id: 52481 title: "Syntax/Syntax ZX80 v3 n7" type: "issue" url: "http://localhost/issue/syntax-syntax-zx80-v3-n7/" pages: "21" pubdate: "July 1982" archive_link: false --- # Program Improvements: Sort Routine Shortened version of Leo Morgan’s string sort routine from Oct. 1981, reducing it by two lines by using an inverted space character (higher code than any standard character) to eliminate boundary-checking lines.