Тема: Array.constants
Показать сообщение отдельно
Старый 20.11.2003, 17:12
john вне форума Посмотреть профиль Отправить личное сообщение для john Посетить домашнюю страницу john Найти все сообщения от john
  № 3  
john
МЕГАФЛЭШЕР

Регистрация: May 1999
Адрес: Россия, Москва
Сообщений: 1,181
Да это константы для сортировки.
идут как дополнительные пареметры методу sort

Array.sort()
Availability
Flash Player 5; additional capabilities added in Flash Player 7.

Usage
my_array.sort()
my_array.sort(compareFunction)
my_array.sort(option | option |... )
my_array.sort(compareFunction, option | option |... )

Parameters
compareFunction An optional comparison function used to determine the sorting order of elements in an array. Given the elements A and B, the result of compareFunction can have one of the following three values:

-1 if A should appear before B in the sorted sequence
0 if A = B
1 if A should appear after B in the sorted sequence
option One or more numbers or strings, separated by the | (bitwise OR) operator, that change the behavior of the sort from the default. The following values are acceptable for option:

1 or Array.CASEINSENSITIVE
2 or Array.DESCENDING
4 or Array.UNIQUE
8 or Array.RETURNINDEXEDARRAY
16 or Array.NUMERIC