Ben Posted February 25, 2005 Share Posted February 25, 2005 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 Link to comment Share on other sites More sharing options...
therks Posted February 25, 2005 Share Posted February 25, 2005 You think perhaps you should have posted this in the Bug Reports forum? My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
Ben Posted February 25, 2005 Author Share Posted February 25, 2005 Oh sorry... Link to comment Share on other sites More sharing options...
therks Posted February 25, 2005 Share Posted February 25, 2005 S'okay. You're a newbie. But just take a little more time to check these things out first. At least it's a valid bug. As soon as you add an extra item to the array it sorts just fine. My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
Developers Jos Posted February 25, 2005 Developers Share Posted February 25, 2005 Was already reported in the Bug forum and fixed: #60920 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now