From: Dr. Stephen Henson <steve@openssl.org>
Date: Thu, 9 Jul 2015 15:56:45 +0000 (+0100)
Subject: Sort @sstacklst correctly.
X-Git-Tag: OpenSSL_1_0_2e~169
X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2a7059c56f885a3fa0842e886f5178def8e5481d;p=oweals%2Fopenssl.git

Sort @sstacklst correctly.

Reviewed-by: Rich Salz <rsalz@openssl.org>
---

diff --git a/util/mkstack.pl b/util/mkstack.pl
index 2bd96cd0c1..f4520d4dd3 100755
--- a/util/mkstack.pl
+++ b/util/mkstack.pl
@@ -98,7 +98,7 @@ while(<IN>) {
 EOF
 	}
 
-	foreach $type_thing (sort @sstacklst) {
+    foreach $type_thing (sort { $a->[0] cmp $b->[0]} @sstacklst) {
 	    my $t1 = $type_thing->[0];
 	    my $t2 = $type_thing->[1];
 	    $new_stackfile .= <<EOF;