lua alphabetically sort perl generated rocklib_aux functions
Change-Id: I6566c19a0fee630a5e250c1244159d5b488b57ff
diff --git a/apps/plugins/lua/rocklib_aux.pl b/apps/plugins/lua/rocklib_aux.pl
index cad2f88..5d77288 100755
--- a/apps/plugins/lua/rocklib_aux.pl
+++ b/apps/plugins/lua/rocklib_aux.pl
@@ -270,9 +270,12 @@
return sprintf("\tbool result = %s;\n\tlua_pushboolean(L, result);\n\treturn 1;\n", $name);
}
+#Sort the functions
+my @sorted_functions = sort { @$a{'name'} cmp @$b{'name'} } @functions;
+
# Print the functions
my @valid_functions;
-foreach my $function (@functions)
+foreach my $function (@sorted_functions)
{
my $valid = 1, @arguments = ();
# Check for supported arguments