Thread: sortdescending
View Single Post
  #1  
Old 01-03-2007, 05:45 AM
Andy0687 Andy0687 is offline
Enigma
Join Date: Feb 2002
Posts: 1,072
Andy0687 is on a distinguished road
sortdescending

How are sortascending() and sortdescending() sorting the array? I know it sorts by lowest/highest first.

So for the most part I have a number infront of a few words because I was hoping when i sortdescending() it would arrange them by the numbers.

Eventually this is the output afterwords

PHP Code:
8 N1
7 N2
20 N3
12 N4
0 N5
0 N6
0 N7 
Everything is passing right but they just arent sorting correctly. I was wondering if this is because the array contains numbers and letters?

Its more of a question of how this functions.
Reply With Quote