Jump to content

Recommended Posts

Posted (edited)

try this.

#include <Array.au3>

;===============================================================================
; Example 1 (using a 1D array)
;===============================================================================
Local $avArray[5] = [10,6 ,56 ,37 , 21]


_ArraySort($avArray)
_ArrayDisplay($avArray, "$avArray AFTER _ArraySort() ascending")
Edited by Danyfirex
Posted

allows you to pass in any sort function. Rather like C QSort would accept a pointer to the sort function.

Not only can you compare numerically if you want, your sort function can extract the sections of strings you want to compare. It's all done inline. No need to copy arrays in and out.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...