We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c7ba75 commit 9adbfafCopy full SHA for 9adbfaf
pChart/index.php
@@ -208,7 +208,7 @@
208
}
209
//OPTIMIZE_LOG
210
if ($_GET['subop'] == 'optimize') {
211
- $data = SQLSelect("SELECT * FROM $history_table WHERE VALUE_ID='" . $pvalue['ID'] . "' ORDER BY ADDED DESC");
+ $data = SQLSelect("SELECT * FROM $history_table WHERE VALUE_ID='" . $pvalue['ID'] . "' ORDER BY ADDED DESC, ID DESC");
212
$total = count($data);
213
$old_value = $data[0]['VALUE'];
214
for ($i = 1; $i < $total; $i++) {
@@ -223,7 +223,7 @@
223
224
225
if ($_GET['export']) {
226
- $data = SQLSelect("SELECT * FROM $history_table WHERE VALUE_ID='" . $pvalue['ID'] . "' ORDER BY ADDED");
+ $data = SQLSelect("SELECT * FROM $history_table WHERE VALUE_ID='" . $pvalue['ID'] . "' ORDER BY ADDED, ID");
227
//dprint($data);
228
229
$csv = implode("\t", array('ADDED', 'VALUE')) . PHP_EOL;
0 commit comments