summaryrefslogtreecommitdiffstats
path: root/apps/plugins/lua
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2019-07-17 10:22:21 -0500
committerWilliam Wilgus <me.theuser@yahoo.com>2019-07-17 10:22:21 -0500
commit47639fb9acb3da7fa44e16ad15b9237191e6c482 (patch)
treeba08378978bdc653382fcd76f915e01b3b272a2c /apps/plugins/lua
parent4e44c9c58c6b19a0dd8db8fb7a088b2649517969 (diff)
downloadrockbox-47639fb9acb3da7fa44e16ad15b9237191e6c482.tar.gz
rockbox-47639fb9acb3da7fa44e16ad15b9237191e6c482.tar.bz2
rockbox-47639fb9acb3da7fa44e16ad15b9237191e6c482.zip
lua alphabetically sort perl generated rocklib_aux functions
Change-Id: I6566c19a0fee630a5e250c1244159d5b488b57ff
Diffstat (limited to 'apps/plugins/lua')
-rwxr-xr-xapps/plugins/lua/rocklib_aux.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/plugins/lua/rocklib_aux.pl b/apps/plugins/lua/rocklib_aux.pl
index cad2f887ef..5d77288cc1 100755
--- a/apps/plugins/lua/rocklib_aux.pl
+++ b/apps/plugins/lua/rocklib_aux.pl
@@ -270,9 +270,12 @@ sub out_bool
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