Skip to content

Commit

Permalink
Arr 1.2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed Jun 25, 2020
1 parent 0d7124d commit 904f7e0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Arr.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static function sort(array $array, string $field, string $direction = 'AS
if (count($array) > 0) {
// Create the helper array
foreach ($array as $key => $row) {
$helper[$key] = function_exists('mb_strtolower') ? mb_strtolower(self::get($row, $field)) : strtolower(self::get($row, $field));
$helper[$key] = function_exists('mb_strtolower') ? mb_strtolower(strval(static::get($row, $field))) : strtolower(strval(static::get($row, $field)));
}

// Sort
Expand Down
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# v1.2.6, 2020-06-25
# v1.2.8, 2020-06-25
* Fix method sort()

# v1.2.7, 2020-06-25
* New method dot()
* New method undot()

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h1 align="center">Arr Component</h1>

<p align="center">
<a href="https://github.com/flextype-components/arr/releases"><img alt="Version" src="https://img.shields.io/github/release/flextype-components/arr.svg?label=version&color=black"></a> <a href="https://github.com/flextype/flextype"><img src="https://img.shields.io/badge/license-MIT-blue.svg?color=black" alt="License"></a> <a href="https://github.com/flextype-components/arr"><img src="https://img.shields.io/github/downloads/flextype-components/arr/total.svg?color=black" alt="Total downloads"></a> <a href="https://scrutinizer-ci.com/g/flextype-components/arr?branch=master"><img src="https://img.shields.io/scrutinizer/g/flextype-components/arr.svg?branch=master&color=black" alt="Quality Score"></a> <a href="https://flextype.org/en/discord"><img src="https://img.shields.io/discord/423097982498635778.svg?logo=discord&color=black&label=Discord%20Chat" alt="Discord"></a>
<a href="https://github.com/flextype-components/arr/releases"><img alt="Version" src="https://img.shields.io/github/release/flextype-components/arr.svg?label=version&color=black"></a> <a href="https://github.com/flextype/flextype"><img src="https://img.shields.io/badge/license-MIT-blue.svg?color=black" alt="License"></a> <a href="https://github.com/flextype-components/arr"><img src="https://img.shields.io/github/downloads/flextype-components/arr/total.svg?color=black" alt="Total downloads"></a>
</p>

The Array Component contains methods that can be useful when working with arrays.
Expand Down

0 comments on commit 904f7e0

Please sign in to comment.