summaryrefslogtreecommitdiffstats
path: root/sort.scm
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2017-02-20 00:05:27 -0800
committerBryan Newbold <bnewbold@robocracy.org>2017-02-20 00:05:27 -0800
commitfa3f23105ddcf07c5900de47f19af43d1db1b597 (patch)
treeb2c6cce6b97698098f50cbc78c23fdc0f8d401ab /sort.scm
parentf24b9140d6f74804d5599ec225717d38ca443813 (diff)
downloadslib-fa3f23105ddcf07c5900de47f19af43d1db1b597.tar.gz
slib-fa3f23105ddcf07c5900de47f19af43d1db1b597.zip
Import Upstream version 2c3upstream/2c3
Diffstat (limited to 'sort.scm')
-rw-r--r--sort.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/sort.scm b/sort.scm
index ab9b938..5312109 100644
--- a/sort.scm
+++ b/sort.scm
@@ -22,8 +22,8 @@
#t
(do ((i 1 (+ i 1)))
((or (= i n)
- (less? (vector-ref seq (- i 1))
- (vector-ref seq i)))
+ (less? (vector-ref seq i)
+ (vector-ref seq (- i 1))))
(= i n)) )) ))
(else
(let loop ((last (car seq)) (next (cdr seq)))