Sorting multidimensional arrays

Does anybody know how to sort multidimensional arrays? I followed the instructions on the book PHP and MySQL Web Development but it doesn’t seem to work. The instructions are here:
http://www.samspublishing.com/articles/article.asp?p=31840&seqNum=6&rl=1

Any other methods?

Thanks in advance,

Leo