Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:42 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.