new SortDescriptor(key [, descending])
Constructor.
Parameters:
| Name | Type | Argument | Description |
|---|---|---|---|
key |
string | the property to sort on |
|
descending |
boolean |
<optional> |
|
Members
-
descending
-
Get the sorting direction.
-
key
-
Get the sort property name.
Methods
-
toUriEncoding( [index] [, propertyName])
-
Get this object as a standard URI encoded (query parameters) string value.
If
indexis provided and non-negative, then the query parameters will be encoded as an array property namedsorts. Otherwise just barekeyanddescendingproperties will be used. Thedescendingproperty is only added if it istrue.Parameters:
Name Type Argument Default Description indexnumber <optional>
an optional array property index
propertyNamestring <optional>
sorts an optional array property name, only used if
indexis also providedReturns:
the URI encoded string
- Type
- string