Anonymous user
Natural sorting: Difference between revisions
m
added highlighting for a section name and also a computer programming language, reduce the wide of the SAMPLE INPUT section, elided the periods from an abbreviation, reduced spacing before and after "Text strings".
m (added highlighting for a section name and also a computer programming language, reduce the wide of the SAMPLE INPUT section, elided the periods from an abbreviation, reduced spacing before and after "Text strings".) |
|||
Line 3:
{{task|Sorting Algorithms}}
Natural sorting is the sorting of text that does more than rely on the
order of individual characters codes to make the finding of
individual strings easier for a ''human'' reader.
Line 28:
;Task Description
* '''Implement the first four''' of the eight given features in a natural sorting routine/function/method...
* Test each feature implemented separately with an ordered list of test strings from the '''Sample inputs''' section below, and make sure your naturally sorted output is in the same order as other language outputs such as <CODE> Python</CODE>.
* Print and display your output.
* '''For extra credit''' implement more than the first four.
Line 38:
;Sample input:
<pre>
# Ignoring leading spaces.
# Ignoring multiple adjacent spaces (
# Equivalent whitespace characters.
# Case Independent sort.
# Numeric fields as numerics.
# Title sorts.
# Equivalent accented characters (and case).
# Separated ligatures.
# Character replacements.
</pre><br><br>
|