Skip to content

Commit 06d588c

Browse files
committed
Many improvements
1 parent 4bccda7 commit 06d588c

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

functions/array/arsort.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
function arsort(inputArr, sort_flags) {
22
// http://kevin.vanzonneveld.net
33
// + original by: Brett Zamir
4+
// + improved by: Brett Zamir
45
// % note 1: SORT_STRING (as well as natsort and natcasesort) might also be
56
// % note 1: integrated into all of these functions by adapting the code at
67
// % note 1: http://sourcefrog.net/projects/natsort/natcompare.js

functions/array/asort.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
function asort(inputArr, sort_flags) {
22
// http://kevin.vanzonneveld.net
33
// + original by: Brett Zamir
4+
// + improved by: Brett Zamir
45
// % note 1: SORT_STRING (as well as natsort and natcasesort) might also be
56
// % note 1: integrated into all of these functions by adapting the code at
67
// % note 1: http://sourcefrog.net/projects/natsort/natcompare.js

functions/array/sort.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ function sort (inputArr, sort_flags) {
22
// http://kevin.vanzonneveld.net
33
// + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
44
// + revised by: Brett Zamir
5+
// + improved by: Brett Zamir
56
// % note 1: SORT_STRING (as well as natsort and natcasesort) might also be
67
// % note 1: integrated into all of these functions by adapting the code at
78
// % note 1: http://sourcefrog.net/projects/natsort/natcompare.js

functions/array/uasort.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
function uasort (inputArr, sorter) {
22
// http://kevin.vanzonneveld.net
33
// + original by: Brett Zamir
4+
// + improved by: Brett Zamir
45
// * example 1: fruits = {d: 'lemon', a: 'orange', b: 'banana', c: 'apple'};
56
// * example 1: uasort(fruits, function (a, b) { if (a > b) {return 1;}if (a < b) {return -1;} return 0;});
67
// * results 1: fruits == {c: 'apple', b: 'banana', d: 'lemon', a: 'orange'}

0 commit comments

Comments
 (0)