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.