Re: sorting numbers

Subject: Re: sorting numbers
From: Lauren <lauren -at- writeco -dot- net>
To: techwr-l -at- lists -dot- techwr-l -dot- com
Date: Fri, 12 Jul 2013 12:57:32 -0700

On 7/11/2013 10:18 AM, Laurie Little wrote:

A client's documentation says "Numbers will sort alphabetically rather than
in numeric order (i.e. 1, 11, 2, 209, 33...)". Is this type of sort truly
considered "alphabetical" or something else?

It's wrong to call it alphabetical. Numbers are sorted like words by ordering each digit in series from the left, so it is an alpha-sort of sorts and is called, alphanumeric sorting. Robert Lauritson and Fred Ridder explained that well enough. Chris Morton mentioned that it was ASCII sort. I mostly agree with Peter and Andrew on this. An old school remedy for that type of sort is to use leading zeroes so that every number has the same number of digits and will sort numerically. Modern applications adjust for real-world numbers.

Excel mangles sorting and Microsoft explains how to fix this along with some definitions you may be able to incorporate into your documentation.
http://support.microsoft.com/kb/322067

I would be tempted to say, "Our programmers are idiots, so use leading zeroes to get the numbers to sort numerically or accept that numbers are sorted like words by ordering each digit in series from the left." It is probably best to leave out the sarcasm and just say, "The application uses an alphanumeric sort that sorts numbers by digit left to right instead of by number value."






^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
New! Doc-to-Help 2013 features the industry's first HTML5 editor for authoring.

Learn more: http://bit.ly/ZeOZeQ

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

You are currently subscribed to TECHWR-L as archive -at- web -dot- techwr-l -dot- com -dot-
To unsubscribe send a blank email to
techwr-l-leave -at- lists -dot- techwr-l -dot- com


Send administrative questions to admin -at- techwr-l -dot- com -dot- Visit
http://www.techwhirl.com/email-discussion-groups/ for more resources and info.

Looking for articles on Technical Communications? Head over to our online magazine at http://techwhirl.com

Looking for the archived Techwr-l email discussions? Search our public email archives @ http://techwr-l.com/archives


Previous by Author: Re: Where to place icon descriptions
Next by Author: Re: Ensure vs. verify
Previous by Thread: Re: Sorting Numbers
Next by Thread: Re: sorting numbers


What this post helpful? Share it with friends and colleagues:

Sponsored Ads


Sponsored Ads