Skip to content

Instantly share code, notes, and snippets.

@sidola
Created June 24, 2014 09:04
Show Gist options
  • Select an option

  • Save sidola/c81b42c529a7420cb9eb to your computer and use it in GitHub Desktop.

Select an option

Save sidola/c81b42c529a7420cb9eb to your computer and use it in GitHub Desktop.
AHK - Sort an array
AutoSort(Arr) {
t := []
for k, v in Arr
t[RegExReplace(v, "\s")] := v
for k, v in t
Arr[A_Index] := v
return Arr
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment