mirror of
https://github.com/josdejong/mathjs.git
synced 2025-12-08 19:46:04 +00:00
15 lines
330 B
JavaScript
15 lines
330 B
JavaScript
module.exports = {
|
|
'name': 'sort',
|
|
'category': 'Utils',
|
|
'syntax': [
|
|
'sort(x)',
|
|
'sort(x, compare)'
|
|
],
|
|
'description': 'Sort the items in a matrix. Compare can be a string "asc" or "desc", or a custom sort function.',
|
|
'examples': [
|
|
'sort([5, 10, 1])',
|
|
'sort(["C", "B", "A", "D"])'
|
|
],
|
|
'seealso': []
|
|
};
|