<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Perl Sorting Question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-sorting-question/m-p/3175019#M718141</link>
    <description>my @list = map { $_-&amp;gt;[0] }&lt;BR /&gt;sort { $a-&amp;gt;[1] &amp;lt;=&amp;gt; $b-&amp;gt;[1] }&lt;BR /&gt;map { [ $_, (stat)[8] ] }&lt;BR /&gt;glob "*.html";&lt;BR /&gt;&lt;BR /&gt;that's all&lt;BR /&gt;&lt;BR /&gt;search doc's for swarzian transform&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;sort { $a &amp;lt;=&amp;gt; $b } ...&lt;BR /&gt;&lt;BR /&gt;is sort ascending numerical. swap a and b for descending&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
    <pubDate>Tue, 27 Jan 2004 08:27:59 GMT</pubDate>
    <dc:creator>H.Merijn Brand (procura</dc:creator>
    <dc:date>2004-01-27T08:27:59Z</dc:date>
    <item>
      <title>Perl Sorting Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-sorting-question/m-p/3175017#M718139</link>
      <description>I am trying to do a sort on file access time of a directory on a Windows NT direcotry.  I can get the atime and the file name, but when I do a sort it always defaults to an ASCII sort on the filename.  How do I do a numeric sort on the atime field?  Is there an easy way to sort numerically on a specific field in Perl?</description>
      <pubDate>Tue, 27 Jan 2004 07:48:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-sorting-question/m-p/3175017#M718139</guid>
      <dc:creator>Jason Berendsen</dc:creator>
      <dc:date>2004-01-27T07:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Sorting Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-sorting-question/m-p/3175018#M718140</link>
      <description>Outside of perl, it would be the option -n to the sort command. And if the time is not on the begin of the line but in column 2 it would become&lt;BR /&gt;sort -nk2&lt;BR /&gt;&lt;BR /&gt;But I guess more info on how the list of data looks might help us to give you a algorithm to do what you want...</description>
      <pubDate>Tue, 27 Jan 2004 07:51:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-sorting-question/m-p/3175018#M718140</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2004-01-27T07:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Sorting Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-sorting-question/m-p/3175019#M718141</link>
      <description>my @list = map { $_-&amp;gt;[0] }&lt;BR /&gt;sort { $a-&amp;gt;[1] &amp;lt;=&amp;gt; $b-&amp;gt;[1] }&lt;BR /&gt;map { [ $_, (stat)[8] ] }&lt;BR /&gt;glob "*.html";&lt;BR /&gt;&lt;BR /&gt;that's all&lt;BR /&gt;&lt;BR /&gt;search doc's for swarzian transform&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;sort { $a &amp;lt;=&amp;gt; $b } ...&lt;BR /&gt;&lt;BR /&gt;is sort ascending numerical. swap a and b for descending&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Tue, 27 Jan 2004 08:27:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-sorting-question/m-p/3175019#M718141</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-01-27T08:27:59Z</dc:date>
    </item>
  </channel>
</rss>

