summaryrefslogtreecommitdiff
path: root/lib/sort.t
Commit message (Collapse)AuthorAgeFilesLines
* do not count tests, instead use done_testing()Michiel Beijen2021-12-041-3/+3
| | | | | | | | | | | | | | | Having to count tests is annoying for maintainers. Also, manually updating count tests is problematic when multiple people are working on the same code; it causes merge conflicts and recounts. done_testing() is available since Test::More 0.88 which was released in 2009. This commit changes all tests under lib/ that use Test::More and were planning the number of tests. Michiel Beijen is now a Perl author
* The sort pragma is now a no-op. It no longer sets or clears any hints bits.Nicholas Clark2021-07-311-3/+55
| | | | sort::current() now issues a deprecation warning and always returns "stable".
* rip out quicksort and sort algorithm controlZefram2017-11-171-36/+5
| | | | [perl #119635]
* Change save/restore behavior for comparisonsjpl2017-09-211-1/+16
| | | | | | | | S_mergesortsv was saving the current comparison routine only when the SORTf_DESC flag was set, but "restoring" it when ANY flag was set. When some flag other than SORTf_DESC was set, this could lead to the pointer to the comparison routine being set to NULL, triggering a segfault when the routine was subsequently invoked.
* Remove obsolete comment from lib/sort.tFather Chrysostomos2014-12-131-2/+0
| | | | | | It was added by perl-5.6.0-8936-g7821065. The corresponding comment in pp_sort.c that it refers to, also added by the same commit, was removed in perl-5.8.0-5345-g5fe61d9.
* Prevent "use sort 'stable'" from reversing the orderRobin Houston2006-04-021-1/+4
| | | | | Message-ID: <20060402162024.GA3854@rpc142.cs.man.ac.uk> p4raw-id: //depot/perl@27689
* Re: [PATCH] Make the 'sort' pragma lexically scopedRobin Houston2005-12-191-39/+34
| | | | | Message-ID: <20051219174620.GA17940@rpc142.cs.man.ac.uk> p4raw-id: //depot/perl@26402
* Re: mention of "use sort" botched in perlfunc? + PATCHJohn P. Linderman2002-08-051-1/+22
| | | | | | From: "John P. Linderman" <jpl@research.att.com> Message-id: <200207211613.MAA69505@raptor.research.att.com> p4raw-id: //depot/perl@17685
* Fix bug id 20020427.004 on %^H.Rafael Garcia-Suarez2002-04-301-3/+2
| | | | | | | Add a regression test for %^H. Change the sort pragma implementation to use a global variable instead of %^H. p4raw-id: //depot/perl@16286
* Re: lib/sort.t failure -- real PATCH enclosedAndy Dougherty2002-04-081-5/+2
| | | | | Message-Id: <Pine.SOL.4.10.10204081317040.20618-100000@maxwell.phys.lafayette.edu> p4raw-id: //depot/perl@15811
* Re: lib/sort.t failure (and [PATCH])John P. Linderman2002-04-051-7/+15
| | | | | | From: "John P. Linderman" <jpl@research.att.com> Message-ID: <200204051213.HAA13004@raptor.research.att.com> p4raw-id: //depot/perl@15741
* Set @INC earlierAndy Dougherty2002-04-031-3/+3
| | | | | Message-ID: <Pine.SOL.4.10.10204031618150.20955-100000@maxwell.phys.lafayette.edu> p4raw-id: //depot/perl@15717
* extensive regression testingRafael Garcia-Suarez2002-04-011-7/+148
| | | | | Message-ID: <20020401235024.E677@rafael> p4raw-id: //depot/perl@15670
* sort tweaks from John P. Linderman.Jarkko Hietaniemi2001-11-271-2/+2
| | | p4raw-id: //depot/perl@13292
* Implement the sort pragma. Split sort code from pp_ctl.cJarkko Hietaniemi2001-11-211-0/+17
to pp_sort.c. Includes the quicksort stabilizing layer from John P. Linderman. -Msort=qsort or -Msort=fast is faster than without (or with -Msort=mergesort or -Msort=safe) for short random inputs, but for some reason not quite as fast as 5.6.1 qsort. More benchmarking, profiling, tuning, and optimizing definitely needed. p4raw-id: //depot/perl@13179