Multiple choice technology programming languages

What is the default sort order in Perl?

  1. alphabetic

  2. numeric

  3. ASCII

  4. none of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Perl's sort function by default uses ASCII/Unicode code point ordering (lexicographic string comparison). Numeric sorting requires explicit comparison or the <=> operator.