decred: listtransactions order is finally like others

This commit is contained in:
Tanguy Pruvot 2018-01-23 23:54:06 +01:00
parent 1f9bfd006a
commit 7aa93d684a
2 changed files with 6 additions and 3 deletions

View file

@ -395,7 +395,8 @@ if ($DCR) {
if ($lastday == '' && count($txs) == $maxrows)
$lastday = strftime('%F', $tx['time']);
}
ksort($txs_array); // reversed order
if ($info['version'] < 1010200)
ksort($txs_array); // was in reversed order
}
$rows = 0;

View file

@ -179,6 +179,7 @@ if (!empty($txs_array)) {
if ($lastday == '' && count($txs) == $maxrows)
$lastday = strftime('%F', arraySafeVal($tx,'blocktime', $tx['time']));
}
if ($info['version'] < 1010200)
ksort($txs_array);
}
@ -200,6 +201,7 @@ if (!empty($tickets)) foreach ($tickets['hashes'] as $n => $txid) {
$stx['stx'] = $stx;
$txs_array[$k] = $stx;
}
if ($info['version'] < 1010200)
ksort($txs_array);
}