You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: YaLinqo/Enumerable.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -213,7 +213,7 @@ public function where($predicate): Enumerable
213
213
* <p>Three methods are defined to extend the type {@link OrderedEnumerable}, which is the return type of this method. These three methods, namely {@link OrderedEnumerable::thenBy thenBy}, {@link OrderedEnumerable::thenByDescending thenByDescending} and {@link OrderedEnumerable::thenByDir thenByDir}, enable you to specify additional sort criteria to sort a sequence. These methods also return an OrderedEnumerable, which means any number of consecutive calls to thenBy, thenByDescending or thenByDir can be made.
214
214
* <p>Because OrderedEnumerable inherits from Enumerable, you can call {@link orderBy}, {@link orderByDescending} or {@link orderByDir} on the results of a call to orderBy, orderByDescending, orderByDir, thenBy, thenByDescending or thenByDir. Doing this introduces a new primary ordering that ignores the previously established ordering.
215
215
* <p>This method performs an unstable sort; that is, if the keys of two elements are equal, the order of the elements is not preserved. In contrast, a stable sort preserves the order of elements that have the same key. Internally, {@link usort} is used.
216
-
* @param int|bool $sortOrder A direction in which to order the elements: false or SORT_DESC for ascending (by increasing value), true or SORT_ASC for descending (by decreasing value).
216
+
* @param int|bool $sortOrder A direction in which to order the elements: false or SORT_ASC for ascending (by increasing value), true or SORT_DESC for descending (by decreasing value).
217
217
* @param callable|string|null $keySelector {(v, k) ==> key} A function to extract a key from an element. Default: value.
218
218
* @param callable|string|int|null $comparer {(a, b) ==> diff} Difference between a and b: <0 if a<b; 0 if a==b; >0 if a>b. Can also be a combination of SORT_ flags.
Copy file name to clipboardExpand all lines: YaLinqo/OrderedEnumerable.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ class OrderedEnumerable extends Enumerable
33
33
/**
34
34
* @internal
35
35
* @param Enumerable $source
36
-
* @param int|bool $sortOrder A direction in which to order the elements: false or SORT_DESC for ascending (by increasing value), true or SORT_ASC for descending (by decreasing value).
36
+
* @param int|bool $sortOrder A direction in which to order the elements: false or SORT_ASC for ascending (by increasing value), true or SORT_DESC for descending (by decreasing value).
37
37
* @param int $sortFlags Sort flags for array_multisort.
38
38
* @param bool $isReversed Whether comparer result needs to be negated (used in usort).
39
39
* @param callable $keySelector {(v, k) ==> key} A function to extract a key from an element.
@@ -65,7 +65,7 @@ private function getSingleComparer()
65
65
* <p>Three methods are defined to extend the type OrderedEnumerable, which is the return type of this method. These three methods, namely {@link thenBy}, {@link thenByDescending} and {@link thenByDir}, enable you to specify additional sort criteria to sort a sequence. These methods also return an OrderedEnumerable, which means any number of consecutive calls to thenBy, thenByDescending or thenByDir can be made.
66
66
* <p>Because OrderedEnumerable inherits from {@link Enumerable}, you can call {@link Enumerable::orderBy orderBy}, {@link Enumerable::orderByDescending orderByDescending} or {@link Enumerable::orderByDir orderByDir} on the results of a call to orderBy, orderByDescending, orderByDir, thenBy, thenByDescending or thenByDir. Doing this introduces a new primary ordering that ignores the previously established ordering.
67
67
* <p>This method performs an unstable sort; that is, if the keys of two elements are equal, the order of the elements is not preserved. In contrast, a stable sort preserves the order of elements that have the same key. Internally, {@link usort} is used.
68
-
* @param int|bool $sortOrder A direction in which to order the elements: false or SORT_DESC for ascending (by increasing value), true or SORT_ASC for descending (by decreasing value).
68
+
* @param int|bool $sortOrder A direction in which to order the elements: false or SORT_ASC for ascending (by increasing value), true or SORT_DESC for descending (by decreasing value).
69
69
* @param callable|string|null $keySelector {(v, k) ==> key} A function to extract a key from an element. Default: value.
70
70
* @param callable|string|int|null $comparer {(a, b) ==> diff} Difference between a and b: <0 if a<b; 0 if a==b; >0 if a>b. Can also be a combination of SORT_ flags.
71
71
* @return \YaLinqo\OrderedEnumerable
@@ -136,7 +136,7 @@ private function trySortBySingleField($array, bool $canMultisort)
0 commit comments