Hi,
When adding a currency (using either hook_commerce_currency_info() or hook_commerce_currency_info_alter()), the currencies are not sorted, and it is surprising at first. I'm suggesting to sort them by currency code.

Files: 
CommentFileSizeAuthor
#2 commerce_1664166_sort_currencies_by_code_better.patch457 bytesSimon Georges
PASSED: [[SimpleTest]]: [MySQL] 3,589 pass(es).
[ View ]
#1 commerce_1664166_sort_currencies_by_code.patch450 bytesSimon Georges
PASSED: [[SimpleTest]]: [MySQL] 3,589 pass(es).
[ View ]

Comments

Status:Active» Needs review
StatusFileSize
new450 bytes
PASSED: [[SimpleTest]]: [MySQL] 3,589 pass(es).
[ View ]

Simple solution, to start the discussion.

StatusFileSize
new457 bytes
PASSED: [[SimpleTest]]: [MySQL] 3,589 pass(es).
[ View ]

Oops, real patch.

Status:Needs review» Reviewed & tested by the community

Tested and working for me.

Status:Reviewed & tested by the community» Fixed

Thanks, committed.

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.