in reply to Re: Sorting Numbers & Text
in thread Sorting Numbers & Text

uhhmmm.... you know? if i knew how to do sql, i probably wouldn't have half the problems i get *heh*, but alas, i have a brain block everytime i try to learn it... kinda like learning linux, which also would fix alot of my problems *heh*

I did try re-inventing the wheel...
But it kept getting stuck on the corners

Replies are listed 'Best First'.
Re^3: Sorting Numbers & Text
by PriNet (Monk) on Jul 12, 2012 at 22:50 UTC
    ok, heres one to really twist your coaxial pair...

    if (($OldItem > $NewItem) || (($OldItem == $NewItem) && ($OldItem gt $NewItem))) {}

    the first catches and "sorts" numbers... || ... the second checks to see if "alpha" and sorts texts...
    watcha think? i know there "has" to be a flaw...*heh*

    I did try re-inventing the wheel...
    But it kept getting stuck on the corners