]> gitweb.factorcode.org Git - factor.git/blobdiff - core/source-files/errors/errors.factor
Rename and add sorting words
[factor.git] / core / source-files / errors / errors.factor
index 8445b0f299b516fa56ebde8b4565247e7382fa29..3abdfe3c9ae8821ef883b0716b421ec7ea760be7 100644 (file)
@@ -27,7 +27,7 @@ M: source-file-error compute-restarts error>> compute-restarts ;
         swap >>error ; inline
 
 : sort-errors ( errors -- alist )
-    [ [ line#>> 0 or ] sort-with ] { } assoc-map-as sort-keys ;
+    [ [ line#>> 0 or ] sort-by ] { } assoc-map-as sort-keys ;
 
 : group-by-source-file ( errors -- assoc )
     [ path>> ] collect-by ;