Skip Menu |
 

This queue is for tickets about the Sort-Naturally CPAN distribution.

Report information
The Basics
Id: 127079
Status: new
Priority: 0/
Queue: Sort-Naturally

People
Owner: Nobody in particular
Requestors: Nilton.Castillo [...] ibm.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



MIME-Version: 1.0
X-Cpan.org: This message routed through the cpan.org mail forwarding service. Please use PAUSE pause.perl.org to configure your delivery settings.
X-Spam-Flag: NO
Content-Type: multipart/related; boundary="0__=8FBB0993DFBF9DB68f9e8a93df938690918c8FBB0993DFBF9DB6"
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -1.804
X-Proofpoint-Spam-Reason: safe
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 3F6452401EB for <cpan-bug+Sort-Naturally [...] hipster.bestpractical.com>; Mon, 10 Sep 2018 04:11:02 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vuKLSJW-CGf2 for <cpan-bug+Sort-Naturally [...] hipster.bestpractical.com>; Mon, 10 Sep 2018 04:10:59 -0400 (EDT)
Received: from xx1.develooper.com (xx1.develooper.com [207.171.7.115]) by hipster.bestpractical.com (Postfix) with ESMTPS id D0F6F2400C0 for <bug-Sort-Naturally [...] rt.cpan.org>; Mon, 10 Sep 2018 04:10:58 -0400 (EDT)
Received: from localhost (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with ESMTP id 77AC011F8F0 for <bug-Sort-Naturally [...] rt.cpan.org>; Mon, 10 Sep 2018 01:10:57 -0700 (PDT)
Received: from xx1.develooper.com (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with SMTP id B4A6C11F97C for <bug-Sort-Naturally [...] rt.cpan.org>; Mon, 10 Sep 2018 01:10:55 -0700 (PDT)
Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by xx1.develooper.com (Postfix) with ESMTPS id 15E8D11F8F0 for <bug-Sort-Naturally [...] rt.cpan.org>; Mon, 10 Sep 2018 01:10:49 -0700 (PDT)
Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w8A89biF029837 for <bug-Sort-Naturally [...] rt.cpan.org>; Mon, 10 Sep 2018 04:10:49 -0400
Received: from smtp.notes.na.collabserv.com (smtp.notes.na.collabserv.com [192.155.248.82]) by mx0a-001b2d01.pphosted.com with ESMTP id 2mdma51qbv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <bug-Sort-Naturally [...] rt.cpan.org>; Mon, 10 Sep 2018 04:10:49 -0400
Received: from localhost by smtp.notes.na.collabserv.com with smtp.notes.na.collabserv.com ESMTP for <bug-Sort-Naturally [...] rt.cpan.org> from <Nilton.Castillo [...] ibm.com>; Mon, 10 Sep 2018 08:10:48 -0000
Received: from us1a3-smtp07.a3.dal06.isc4sb.com (10.146.103.14) by smtp.notes.na.collabserv.com (10.106.227.105) with smtp.notes.na.collabserv.com ESMTP; Mon, 10 Sep 2018 08:10:46 -0000
Received: from us1a3-mail237.a3.dal06.isc4sb.com ([10.146.127.134]) by us1a3-smtp07.a3.dal06.isc4sb.com with ESMTP id 2018091008104635-214738 ; Mon, 10 Sep 2018 08:10:46 +0000
X-Keepsent: 7C9D894D:D79703FF-00258300:002C1B26; type=4; name=$KeepSent
X-Tnefevaluated: 1
Delivered-To: cpan-bug+Sort-Naturally [...] hipster.bestpractical.com
Subject: newline confuses sorting
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-09-10_04:,, signatures=0
X-PMX-Spam: Gauge=IIIIIIIII, Probability=9%, Report=' URI_HOSTNAME_CONTAINS_EQUALS 0.4, BODYTEXTH_SIZE_10000_LESS 0, BODYTEXTH_SIZE_3000_MORE 0, BODYTEXTP_SIZE_3000_LESS 0, GIF_GCT_NOTSORTED 0, GIF_VERSION89A 0, PHISH_TRUSTED_RDNS 0, SINGLE_IMG_ATTACH 0, SINGLE_URI_IN_BODY 0, SPF_PASS 0, URI_WITH_PATH_ONLY 0, __ANY_URI 0, __CP_URI_IN_BODY 0, __CT 0, __CTYPE_HAS_BOUNDARY 0, __CTYPE_MULTIPART 0, __DQ_NEG_HEUR 0, __DQ_NEG_IP 0, __EMBEDDED_IMG 0, __EXTRA_MPART_TYPE_N1 0, __FRAUD_MONEY_CURRENCY 0, __FRAUD_MONEY_CURRENCY_DOLLAR 0, __FUR_RDNS_CITIGROUP 0, __GIF_ATTACHED 0, __HAS_ATTACHMENT 0, __HAS_ATTACHMENT1 0, __HAS_ATTACHMENT2 0, __HAS_FROM 0, __HAS_HTML 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HIGHBITS 0, __HTML_AHREF_TAG 0, __HTML_TAG_TABLE 0, __HTTPS_URI 0, __IMG_ATTACHED 0, __MIME_HTML 0, __MIME_TEXT_H 0, __MIME_TEXT_H1 0, __MIME_TEXT_H2 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_TEXT_P2 0, __MIME_VERSION 0, __MULTIPLE_URI_TEXT 0, __SANE_MSGID 0, __SINGLE_URI_MPART_BOTH 0, __SUBJ_ALPHA_END 0, __SUBJ_ALPHA_START 0, __TAG_EXISTS_HTML 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_IN_BODY 0, __URI_NOT_IMG 0, __URI_NO_WWW 0, __URI_NS , __URI_WITH_PATH 0, __blackholes.mail-abuse.org_TIMEOUT , __zen.spamhaus.org_ERROR '
Date: Mon, 10 Sep 2018 10:10:42 +0200
X-Spam-Level:
X-Ibm-Av-Version: SAVI=2018-09-10 08:02:14 - 6.00008947
X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2018.9.10.80017
X-Cbid: 18091008-5101-0000-0000-00000C3B4831
X-Cbparentid: 18091008-5102-0000-0000-000042154A6E
To: bug-Sort-Naturally [...] rt.cpan.org
X-Ibm-Spammodules-Versions: BY=3.00009694; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000266; SDB=6.01086183; UDB=6.00560774; IPR=6.00866194; BA=6.00006093; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00023208; XFM=3.00000015; UTC=2018-09-10 08:10:48
X-Spam-Status: No, score=-1.804 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, TVD_FW_GRAPHIC_NAME_MID=0.095] autolearn=ham
X-Mailer: IBM Notes Release 9.0.1FP7 Octobe4, 2013
Message-ID: <OF7C9D894D.D79703FF-ON00258300.002C1B26-C1258304.002CECEB [...] notes.na.collabserv.com>
X-Llnoutbound: False
Return-Path: <Nilton.Castillo [...] ibm.com>
X-Ibm-Av-Detection: SAVI=unsuspicious REMOTE=unsuspicious XFE=unused
X-Original-To: cpan-bug+Sort-Naturally [...] hipster.bestpractical.com
X-RT-Mail-Extension: sort-naturally
X-Ibm-Spammodules-Scores: BY=0; FL=0; FP=0; FZ=0; HX=0; KW=0; PH=0; SC=0.400847; ST=0; TS=0; UL=0; ISC=; MB=0.059199
X-Disclaimed: 45831
From: "Nilton Castillo" <Nilton.Castillo [...] ibm.com>
X-RT-Interface: Email
Content-Length: 0
Content-Type: multipart/alternative; boundary="1__=8FBB0993DFBF9DB68f9e8a93df938690918c8FBB0993DFBF9DB6"
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Transfer-Encoding: Quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 2540
Download (untitled) / with headers
text/plain 2.4k
Hello List, Sorry if this has been discussed before, I could not find any resolved/rejected bugs. according to the documentation "\W substrings (neither words-characters nor digits) are ignored. " But there is a difference in sorting order when the list contains newlines, here is a minimal example: # Using the diamond operator to sort a list (for example, a file with multiple lines) [ncastill@psort]$ echo -e "A.1\nA.1.1\nA.2\nA.10" | perl -MSort::Naturally -E 'print nsort <>' A.1.1 A.1 A.2 A.10 # removing the newlines \n before sorting, then putting them back in the output does sort it according to the documentation [ncastill@psort]$ echo -e "A.1\nA.1.1\nA.2\nA.10" | perl -MSort::Naturally -E 'chomp(@_=<>); say join "\n", nsort @_' A.1 A.1.1 A.2 A.10 # newline \n does match \W $ perl -E 'say "\n"=~/^\W+$/' 1 # also checked against latest version, and it is the same file as on my system: https://fastapi.metacpan.org/source/BINGOS/Sort-Naturally-1.03/lib/Sort/Naturally.pm # Not sure what my complaint is, as there is a workaround. Maybe a note in the documentation to chomp before nsort-ing. Hopefuly a fix. # My environment: This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-linux-thread-multi [ncastill@psort]$ head -4 /usr/share/perl5/vendor_perl/Sort/Naturally.pm require 5; package Sort::Naturally; # Time-stamp: "2004-12-29 18:30:03 AST" $VERSION = '1.03'; [ncastill@psort]$ uname -a Linux oc1832383537.ibm.com 3.10.0-862.11.6.el7.x86_64 #1 SMP Fri Aug 10 16:55:11 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux Cordiali saluti, salutări, S pozdravom, Met vriendelijke groeten, Cordialement, With kind regards, Nilton Castillo IT Specialist Unix GTS - UWV Unix Team Office: HDK4-D IBM Nederland B.V. Mobile: +31(0)6-24667440 Johan Huizingalaan 765 E-mail: Amsterdam, 1066 VH nilton.castillo@ibm.com Netherlands Tenzij hierboven anders aangegeven: / Unless stated otherwise above: IBM Nederland B.V. Gevestigd te Amsterdam Inschrijving Handelsregister Amsterdam Nr. 33054214
content-type: text/html; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: base64
X-RT-Original-Encoding: utf-8
Content-Length: 3658
Content-Type: image/gif; name="ecblank.gif"
Content-Disposition: inline; filename="ecblank.gif"
Content-Transfer-Encoding: base64
Content-ID: <1__=8FBB0993DFBF9DB68f9e8a93df938690918c8FB [...] >
Content-Length: 45
Download ecblank.gif
image/gif 45b
ecblank.gif


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.