File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 208208 }
209209 //OPTIMIZE_LOG
210210 if ($ _GET ['subop ' ] == 'optimize ' ) {
211- $ data = SQLSelect ("SELECT * FROM $ history_table WHERE VALUE_ID=' " . $ pvalue ['ID ' ] . "' ORDER BY ADDED DESC " );
211+ $ data = SQLSelect ("SELECT * FROM $ history_table WHERE VALUE_ID=' " . $ pvalue ['ID ' ] . "' ORDER BY ADDED DESC, ID DESC " );
212212 $ total = count ($ data );
213213 $ old_value = $ data [0 ]['VALUE ' ];
214214 for ($ i = 1 ; $ i < $ total ; $ i ++) {
223223 }
224224
225225 if ($ _GET ['export ' ]) {
226- $ data = SQLSelect ("SELECT * FROM $ history_table WHERE VALUE_ID=' " . $ pvalue ['ID ' ] . "' ORDER BY ADDED " );
226+ $ data = SQLSelect ("SELECT * FROM $ history_table WHERE VALUE_ID=' " . $ pvalue ['ID ' ] . "' ORDER BY ADDED, ID " );
227227 //dprint($data);
228228
229229 $ csv = implode ("\t" , array ('ADDED ' , 'VALUE ' )) . PHP_EOL ;
You can’t perform that action at this time.
0 commit comments