added sort_wrt;
authorwenzelm
Thu, 23 Oct 1997 12:10:32 +0200
changeset 3973 1be726ef6813
parent 3972 87941982f475
child 3974 d3c2159b75fa
added sort_wrt;
src/Pure/library.ML
--- a/src/Pure/library.ML	Thu Oct 23 12:09:48 1997 +0200
+++ b/src/Pure/library.ML	Thu Oct 23 12:10:32 1997 +0200
@@ -987,7 +987,8 @@
   in  sort1  end;
 
 (*sort strings*)
-val sort_strings = sort (op <= : string * string -> bool);
+fun sort_wrt sel xs = sort (op <= o pairself (sel: 'a -> string)) xs;
+val sort_strings = sort_wrt I;
 
 
 (* transitive closure (not Warshall's algorithm) *)