]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/pair-methods/pair-methods.factor
Rename and add sorting words
[factor.git] / extra / pair-methods / pair-methods.factor
index 01c94d4aad1d7c35a6524fa3e96e6e2228e4404d..d39249340ebc2ad573424cdb76b6f118c7f06d28 100644 (file)
@@ -22,7 +22,7 @@ ERROR: no-pair-method a b generic ;
 
 : sorted-pair-methods ( word -- alist )
     "pair-generic-methods" word-prop >alist
-    [ first method-sort-key ] inv-sort-with ;
+    [ first method-sort-key ] inv-sort-by ;
 
 : pair-generic-definition ( word -- def )
     [ sorted-pair-methods [ first2 pair-method-cond ] map ]