Re: Sorting arrays of objects
- From: "Alberto Poblacion" <earthling-quitaestoparacontestar@xxxxxxxxxxxxx>
- Date: Wed, 28 Jan 2009 13:10:24 +0100
"Dylan Parry" <usenet@xxxxxxxxxxxxxx> wrote in message news:glphcn.doo.1@xxxxxxxxxxxxxxxxx
Of course! I didn't think of that, and it's such a simple solution. Any
idea what would happen if, God forbid, there's an appendix called 10A? :s
If you implement my suggestion of "TryParse", the TryParse would return failure and you would then sort it alphabetically... which means that 10A would come *before* 9A. If this is not what you want, you will need to think about the possible combinations of numbers and letters that you allow in "number", and decide on how each combination shoud be sorted (for instance: if it starts with a number and then is followed by letters, sort numerically on the number part and the alphabetically on the rest of the string). You would need to specifically code for such criteria.
.
- Follow-Ups:
- Re: Sorting arrays of objects
- From: Dylan Parry
- Re: Sorting arrays of objects
- References:
- Sorting arrays of objects
- From: Dylan Parry
- Re: Sorting arrays of objects
- From: Alberto Poblacion
- Re: Sorting arrays of objects
- From: Dylan Parry
- Sorting arrays of objects
- Prev by Date: Re: exceptions in 'using statement'
- Next by Date: Re: Sorting arrays of objects
- Previous by thread: Re: Sorting arrays of objects
- Next by thread: Re: Sorting arrays of objects
- Index(es):
Relevant Pages
|