This is a multi-part message in MIME format.
------=_NextPart_000_0056_01BFFD3E.1E32F940
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I've got a database with a lot of potentially numeric data in text =
fields. When I order by this column, my result set is somethng like:
1,10,11,12,2,20,21,3
Instead of 1,2,3,10,11,12,20,21
Is there some method of getting these in the correct order?
I've already tried putting the data into an array and sorting that, to =
no avail.
Also, another probelm with the dataset that may be returned is that =
sometimes the fields do contain text, such as 1(1),1(2), or 1(a),1(b). =
And this needs to be taken into account in the sorting procedure.
TIA
Ashe Richards
------=_NextPart_000_0056_01BFFD3E.1E32F940
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2919.6307" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>I've got a database with a lot of potentially =
numeric data in=20
text fields. When I order by this column, my result set is somethng=20
like:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=3D2>1,10,11,12,2,20,21,3</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=3D2>Instead of 1,2,3,10,11,12,20,21</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=3D2>Is there some method of getting these in the correct =
order?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=3D2>I've already tried putting the data into an array =
and sorting=20
that, to no avail.</FONT></DIV>
<DIV><FONT size=3D2>Also, another probelm with the dataset that may be =
returned is=20
that sometimes the fields do contain text, such as 1(1),1(2), or =
1(a),1(b). And=20
this needs to be taken into account in the sorting =
procedure.</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT size=3D2>TIA</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=3D2>Ashe Richards</FONT></DIV>
<DIV> </DIV></BODY></HTML>
------=_NextPart_000_0056_01BFFD3E.1E32F940--
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.