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

Simon Georges’s picture

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

Simple solution, to start the discussion.

Simon Georges’s picture

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

Oops, real patch.

Artusamak’s picture

Status: Needs review » Reviewed & tested by the community

Tested and working for me.

rszrama’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, committed.

Status: Fixed » Closed (fixed)

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