diff --git a/app/code/community/Mollie/Mpm/Block/Payment/Form.php b/app/code/community/Mollie/Mpm/Block/Payment/Form.php index 97f8eac..73edc8f 100644 --- a/app/code/community/Mollie/Mpm/Block/Payment/Form.php +++ b/app/code/community/Mollie/Mpm/Block/Payment/Form.php @@ -113,4 +113,16 @@ public function getIssuerTitle($code) return $this->__('Select Issuer'); } + /** + * @param \Mollie\Api\Resources\IssuerCollection $issuers + */ + public function sortIssuers($issuers) + { + $issuers->uasort(function($a, $b) { + return strcmp(strtolower($a->name), strtolower($b->name)); + }); + + return $issuers; + } + } diff --git a/app/design/frontend/base/default/template/mollie/mpm/payment/form.phtml b/app/design/frontend/base/default/template/mollie/mpm/payment/form.phtml index 4007482..a8a7faa 100644 --- a/app/design/frontend/base/default/template/mollie/mpm/payment/form.phtml +++ b/app/design/frontend/base/default/template/mollie/mpm/payment/form.phtml @@ -52,7 +52,7 @@ $method = $this->getMethodByCode($code);