jaymc Posted January 7, 2007 Share Posted January 7, 2007 How Can I order the below...[b]Bounce To The Bass 5Bounce To The Bass 6Bounce To The Bass 7Bounce To The Bass 8Bounce To The Bass 9Bounce To The Bass 13Bounce To The Bass 16Bounce To The Bass 10 CD 1Bounce To The Bass 10 CD 2NRGetik Beatz Battle Round 1NRGetik Beatz Battle Round 2[/b]So it comes out like[b]Bounce To The Bass 5Bounce To The Bass 6Bounce To The Bass 7Bounce To The Bass 8Bounce To The Bass 9Bounce To The Bass 10 CD 1Bounce To The Bass 10 CD 2Bounce To The Bass 13Bounce To The Bass 16NRGetik Beatz Battle Round 1NRGetik Beatz Battle Round 2[/b]They are all in a MYSQL database by the way, its just because strings are alpha numeric it cant order the way i need it to Quote Link to comment https://forums.phpfreaks.com/topic/33256-solved-order/ Share on other sites More sharing options...
magic2goodil Posted January 7, 2007 Share Posted January 7, 2007 Do some research on bitwise operators..perhaps you will have more luck with them turning the string into binary with the bitwise functions..although i am new to them and have only read about them recently in the new book i got for christmas..they may help.. Quote Link to comment https://forums.phpfreaks.com/topic/33256-solved-order/#findComment-155300 Share on other sites More sharing options...
trq Posted January 7, 2007 Share Posted January 7, 2007 Take a look at [url=http://php.net/natsort]natsort[/url](). Quote Link to comment https://forums.phpfreaks.com/topic/33256-solved-order/#findComment-155301 Share on other sites More sharing options...
jaymc Posted January 8, 2007 Author Share Posted January 8, 2007 natsort() worked perfectCheers!! Quote Link to comment https://forums.phpfreaks.com/topic/33256-solved-order/#findComment-155415 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.