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) if ($lastday == '' && count($txs) == $maxrows)
$lastday = strftime('%F', $tx['time']); $lastday = strftime('%F', $tx['time']);
} }
ksort($txs_array); // reversed order if ($info['version'] < 1010200)
ksort($txs_array); // was in reversed order
} }
$rows = 0; $rows = 0;

View file

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