Console
hyTags
Home
Home
Documentation
Documentation
array-sort-by
Creates a new array with elements sorted by a custom comparison value.
Parameter
Type
Description
self
[T]
Array to sort
asc
Bool?
Whether to sort in ascending order (defaults to true)
commands
Commands
Commands that return the value to sort by for each element
return
[T]
New array with elements sorted by comparison value
Array
Assert
Attribute
Bool
Class
Closure
Cookie
Data
Date
DateTime
Debug
Element
Error
Event
Form
Fragment
Function
If
Input
Items
Javascript
Loop
Number
Object
Page
Property
Rect
Request
Response
Selection
Storage
String
Style
Time
Url
Value
Var
Window
Quick Reference
Test succeeded
Test failed