# Search the Community

Showing results for tags '_arraysort'.

• ### Search By Tags

Type tags separated by commas.

### Forums

• General
• Announcements and Site News
• AutoIt v3
• AutoIt Help and Support
• AutoIt Technical Discussion
• AutoIt Example Scripts
• Scripting and Development
• Developer General Discussion
• Language Specific Discussion
• Operating System Deployment
• Windows Client
• Windows Server
• Office

### Categories

• AutoIt Team
• Beta
• MVP
• AutoIt
• Automation
• Databases and web connections
• Data compression
• Encryption and hash
• Games
• Hardware
• Information gathering
• Internet protocol suite
• Maths
• Media
• PDF
• Security
• Social Media and other Website API
• Windows
• Scripting and Development
• Operating System Deployment
• Windows Client
• Windows Server
• Office

• Forum FAQ
• AutoIt

### Calendars

• Community Calendar

• 0 Replies

• 0 Reviews

• 0 Views

Found 2 results

1. ## How to get and store the largest number from list into a variable - (Moved)

Hi, How can I get the largest number to be the first number in a calculation? I did the below code but the largest number doesn't store in the \$ aExtract variable. I need always a positive number from the calculation (the largest number be the first in the calculation). Can you help me with that? Thank you. \$N1 = 33 \$N2 = 45 Local \$numberSort [2] = [\$N1 , \$N2] _ArraySort(\$numberSort, 1) _ArrayDisplay(\$numberSort, "Sort Descending", Default, 1) Local \$aExtract = _ArrayExtract(\$numberSort, 0, 0, 0) _ArrayDisplay(\$aExtract, "Row 1 cols 1") \$minus = \$N1 - \$N2
2. ## _ArraySort

The values are: eg. 10 - 6 - 56 - 37 - 21 And i need transform the array in: 6 - 10 - 21 - 37 - 56 I try but return: 10 - 21 - 37 - 56 - 6 Note: I need the ascending. That is, 6 can not be greater than 56
×

• Wiki

• Back

• #### Beta

• Git
• FAQ
×
• Create New...