Skip to content

Commit 962ed9e

Browse files
committed
Fix sorting of countries
1 parent 9cdb7bb commit 962ed9e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ViewModel/Options/CountryOptions.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ public function toOptionArray()
2929

3030
}
3131

32-
asort($options);
32+
usort($options, function ($a, $b) {
33+
return strcasecmp((string)$a['label'], (string)$b['label']);
34+
});
3335

3436
return $options;
3537
}

0 commit comments

Comments
 (0)