timmolter/XChange — pull request #508 by rafalkrupinski (2014-07-06 16:40:26+00:00)
Title: Fix CryptonitAdapterTest get(0) on a List made from HashMap

Current CryptonitAdapterTest fails every time.

The adapter was copying order data from Map to List without any ordering, and then the test was making assertions on the first element of that List

Iterating over a HashMap results in undefined order, but is usually consistent on a machine and JVM version.

Added sorting of resulting list to CryptonitAdapters.adaptOrders and updated the test.