Skip to content

Commit 90618ec

Browse files
committed
return array now instead of undefined
1 parent 5a6667f commit 90618ec

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ Sorts the given array along the first axis in lexicographic order. The sorting
3939

4040
* `array` is an ndarray
4141

42+
**Returns** `array`
43+
4244
## Credits
4345
Based on Google Dart's dual pivot quick sort implementation by Ola Martin Bini and Michael Haubenwallner. For more information see lib/dart/AUTHORS and lib/dart/LICENSE
4446

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ndarray-sort",
3-
"version": "0.0.0",
3+
"version": "0.1.0",
44
"description": "Sorts ndarrays in place",
55
"main": "sort.js",
66
"directories": {

sort.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ function sort(array) {
1313
CACHE[typeName] = compiled = compile(order, dtype)
1414
}
1515
compiled(array)
16+
return array
1617
}
1718

1819
module.exports = sort

0 commit comments

Comments
 (0)