1 | export var sortDocs = {
|
2 | name: 'sort',
|
3 | category: 'Matrix',
|
4 | syntax: ['sort(x)', 'sort(x, compare)'],
|
5 | description: 'Sort the items in a matrix. Compare can be a string "asc", "desc", "natural", or a custom sort function.',
|
6 | examples: ['sort([5, 10, 1])', 'sort(["C", "B", "A", "D"])', 'sortByLength(a, b) = size(a)[1] - size(b)[1]', 'sort(["Langdon", "Tom", "Sara"], sortByLength)', 'sort(["10", "1", "2"], "natural")'],
|
7 | seealso: ['map', 'filter', 'forEach']
|
8 | }; |
\ | No newline at end of file |