From b075b9937f92ae3129cda684b91a298dfadf44b1 Mon Sep 17 00:00:00 2001 From: Jens Maier Date: Tue, 5 Aug 2014 17:39:40 +0200 Subject: [PATCH] Fix: messages imported in wrong order --- script/import_scripts/smf2.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/import_scripts/smf2.rb b/script/import_scripts/smf2.rb index 8eec5f210fb..43476e7d78e 100644 --- a/script/import_scripts/smf2.rb +++ b/script/import_scripts/smf2.rb @@ -180,7 +180,7 @@ class ImportScripts::Smf2 < ImportScripts::Base topics = Enumerator.new do |y| last_topic_id = nil topic_messages = nil - query("SELECT id_msg, id_topic, body FROM {prefix}messages ORDER BY id_topic ASC, poster_time ASC") do |message| + query("SELECT id_msg, id_topic, body FROM {prefix}messages ORDER BY id_topic ASC, id_msg ASC") do |message| if last_topic_id != message[:id_topic] y << topic_messages last_topic_id = message[:id_topic]