Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, November 11, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  Alphanumeric sort

phpMyEdit General     Alphanumeric sort
Post new topic   Reply to topic    
 
rlugo     Joined: 18 Dec 2007   Posts: 4  
Post Posted: 2007-12-23 20:09
Back to top  Reply with quote     

Hi all,

I am trying to sort this alphanumeric data:

1000MB
100MB
12MB

Into this:

12MB
100MB
1000MB

I tried hacking the phpMyEdit.class.php with this code:

...
if ($parts['orderby'] != '')
$ret .= ' ORDER BY CAST('.$parts['orderby'].' AS UNSIGNED),'.$parts['orderby'];
...

but I get the following error:

MySQL error 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`PMEtable0`.`Id` AS UNSIGNED),`PMEtable0`.`Web Space`,`PMEtable0`.`Id` LIMIT 0, ' at line 1

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy