diff --git a/alethzero/plugins/blockchain/AllAccounts.cpp b/alethzero/plugins/blockchain/AllAccounts.cpp
index 12f17d33e..7a133094c 100644
--- a/alethzero/plugins/blockchain/AllAccounts.cpp
+++ b/alethzero/plugins/blockchain/AllAccounts.cpp
@@ -112,8 +112,10 @@ void AllAccounts::on_accounts_currentItemChanged()
try
{
auto storage = ethereum()->storageAt(address);
- for (auto const& i: storage)
- s << "@" << showbase << hex << main()->prettyU256(i.first) << " " << showbase << hex << main()->prettyU256(i.second) << "
";
+ u256s keys = keysOf(storage);
+ sort(keys.begin(), keys.end());
+ for (auto const& i: keys)
+ s << "@" << showbase << hex << main()->prettyU256(i) << " " << showbase << hex << main()->prettyU256(storage[i]) << "
";
s << "