From 844d2d1b28e78f1383936b9e77cb5142b444b0df Mon Sep 17 00:00:00 2001 From: Justin Lau Date: Thu, 27 Oct 2016 00:31:44 +0800 Subject: [PATCH] Use `id` instead of `updated_at` for more consistent behavior --- modules/backend/models/ImportModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/backend/models/ImportModel.php b/modules/backend/models/ImportModel.php index 0739461ff..8420b0328 100644 --- a/modules/backend/models/ImportModel.php +++ b/modules/backend/models/ImportModel.php @@ -195,7 +195,7 @@ abstract class ImportModel extends Model $file = $this ->import_file() ->withDeferred($sessionKey) - ->orderBy('updated_at', 'desc') + ->orderBy('id', 'desc') ->first() ;