changeset 6:5b8f7c3dd929 default tip

fix sort python versions index.cgi.pl
author Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Tue, 07 May 2019 08:55:23 +0900
parents 46d936853422
children
files index.cgi.pl
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/index.cgi.pl	Tue May 07 06:37:31 2019 +0900
+++ b/index.cgi.pl	Tue May 07 08:55:23 2019 +0900
@@ -2,7 +2,7 @@
 use strict;
 use warnings;
 
-my ($tartget_hg_version,) =  map{ m|/usr/local/Cellar/mercurial/(.*)|; $1} glob "/usr/local/Cellar/mercurial/*";
+my ($tartget_hg_version,) =  sort { $b <=> $a  } map{ m|/usr/local/Cellar/mercurial/(.*)|; $1} glob "/usr/local/Cellar/mercurial/*";
 
 while (my $line = <DATA>){
     if ($line =~ /^(?!#)sys\.path\.insert/) {