Methods
(inner) localeSort(a, b, locale, opts)
Shortcut for String.prototype.localeCompare function
- Source:
Parameters:
Name | Type | Description |
---|---|---|
a |
String
|
|
b |
String
|
|
locale |
String
|
for exemple |
opts |
Intl.Collator
|
(inner) quickSort(list) → {Array}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
list |
Array
|
Returns:
- Type:
-
Array
(inner) sortByNestedProperty(prop) → {function}
sort by object properties
- Source:
Parameters:
Name | Type | Description |
---|---|---|
prop |
String
|
Number
|
Symbol
|
object property to sort items by |
Returns:
- Type:
-
function
sort function