Raised This Month: $32 Target: $400
 8% 

[REQ] Array Sort Native


  
 
 
Thread Tools Display Modes
Author Message
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 02-02-2006 , 10:34   [REQ] Array Sort Native
#1

Please add a native to sort arrays. ASort() comes to mind as a generic name. Perhaps with an option for case sensitivity.
Brad is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 02-02-2006 , 15:36  
#2

What do you mean by "sort"? (just for reference)
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 02-02-2006 , 15:59  
#3

Alphabetize in the case of strings. Maybe "order" would have been a better term than "sort".
Brad is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 02-02-2006 , 17:01  
#4

Give an example of how it could work. I'm not getting it still.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
BAILOPAN
Join Date: Jan 2004
Old 08-20-2006 , 00:46   Re: [REQ] Array Sort Native
#6

I have implemented a comprehensive sorting solution for AMX Mod X. It takes into account most major uses, and then provides custom sorting wrappers.

On a side note, it's rare that I'm fully pleased with code I write. But the solution I ended with came out very efficient and clever for the restrictions I had. These will be the first natives to accept and modify 2D arrays, as it turns out it's not an easy task.

You can see this in revision 2947. See "sorting.inc" for more information, and "sorttest.sma" for examples.
__________________
egg

Last edited by BAILOPAN; 08-20-2006 at 00:54.
BAILOPAN is offline
 



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 -4. The time now is 19:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode