Toolboxes menu: case-insensitive sorting 04/21004/3
Samuel GOUGEON [Mon, 10 Jun 2019 16:35:17 +0000 (18:35 +0200)]
Change-Id: I84c2af0e844fe51ea47b6e71e0b0e68bdc9c61b5

scilab/modules/core/macros/toolboxes.sci

index c9d4598..66b0389 100644 (file)
@@ -65,7 +65,8 @@ function [y] = toolboxes(path)
 
     // Creating the menu and its entries
     if (contribs <> []) & (getscilabmode() == "STD") then
-        contribs = gsort(contribs, "g", "i")
+        [?, k] = gsort(convstr(contribs), "g", "i")
+        contribs = contribs(k);
         delmenu(gettext("&Toolboxes"));
         h = uimenu("parent", 0, "label", gettext("&Toolboxes"));
         for k=1:size(contribs,"*")