Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What order(N) is the built in function SORT?

Status
Not open for further replies.

theSeeker03

Programmer
Jan 16, 2004
17
US
Does the built-in function 'sort' perform the sort in order N^2 or NLog(N), where N is the number of items sorted. i'd expect it to be Nlog(N), but I want to be sure. Thanks.
 
These days, the builtin sort method is mergesort. If you're using an older version of Perl, it was quicksort.

________________________________________
Andrew - Perl Monkey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top