]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/spelling/spelling.factor
Rename and add sorting words
[factor.git] / extra / spelling / spelling.factor
index 027f9e05844f3283147e02cf628ac5634f0ee4da..3e9f0911322466e2822a93545dfe0d6d9a1f14fb 100644 (file)
@@ -48,7 +48,7 @@ CONSTANT: ALPHABET "abcdefghijklmnopqrstuvwxyz"
     word 1array dictionary filter-known
     [ word edits1 dictionary filter-known ] when-empty
     [ word edits2 dictionary filter-known ] when-empty
-    [ dictionary at ] sort-with reverse! ;
+    [ dictionary at ] sort-by reverse! ;
 
 : words ( string -- words )
     >lower [ letter? not ] split-when harvest ;