Jump to content
Sign in to follow this  
Ben

Bug on _ArraySort in <Array.au3>

Recommended Posts

Hi,

I think there are a bug with _ArraySort in <Array.au3> when the array has only 2 elements. Sort doesn't work !

For example this script doesn't work :

#include <Array.au3>

Dim $avArray[2]

$avArray[0] = "A"

$avArray[1] = "B"

_ArrayDisplay( $avArray, "Unsorted" )

_ArraySort( $avArray)

_ArrayDisplay( $avArray, "Sort Ascending" )

_ArraySort( $avArray,1)

_ArrayDisplay( $avArray, "Sort Decending" )

Exit

:lmao:

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...