Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Examples
    a=[3, 1, 2] 
a.Sort() 
print a 
REM sets the array to [1, 2, 3]
    a=[3, 1, 2.5] 
a.Sort("r") REM reverse order sort
    print a
REM sets the array to [3, 2.5, 1]
    a=["cat", "DOG", "bee"] 
a.Sort() REM case-sensitive sort by default
    print a
REM sets the array to ["DOG", "bee", "cat"]
    a=["cat", "DOG", "bee"]  
a.Sort("i")  REM case-insensitive sort
    print a
REM sets the array to ["bee", "cat", "DOG"]
    a=["cat", "DOG", "bee"]  
a.Sort("ir")  REM case-insensitive, reverse order sort
    print a
REM sets the array to ["DOG", "cat", "bee"]

...