sort completion result;
authorwenzelm
Fri, 19 Jan 2018 15:20:13 +0100
changeset 67473 aad088768872
parent 67472 7ed8d4cdfb13
child 67474 90def2b06305
sort completion result;
src/Pure/PIDE/resources.ML
--- a/src/Pure/PIDE/resources.ML	Fri Jan 19 15:14:43 2018 +0100
+++ b/src/Pure/PIDE/resources.ML	Fri Jan 19 15:20:13 2018 +0100
@@ -89,6 +89,7 @@
           Completion.make (name, pos) (fn completed =>
               names
               |> filter completed
+              |> sort_strings
               |> map (fn a => (a, (kind, a))));
         val report = Markup.markup_report (Completion.reported_text completion);
       in error ("Bad " ^ kind ^ " " ^ quote name ^ Position.here pos ^ report) end