From 925138baa54423ef95878b100278e491104d757e Mon Sep 17 00:00:00 2001 From: Deon George Date: Sat, 5 Oct 2024 21:46:09 +1000 Subject: [PATCH] Sort duplicates by id --- app/Models/Abstracted/Catalog.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Models/Abstracted/Catalog.php b/app/Models/Abstracted/Catalog.php index 86722f4..aa19ef7 100644 --- a/app/Models/Abstracted/Catalog.php +++ b/app/Models/Abstracted/Catalog.php @@ -147,7 +147,8 @@ abstract class Catalog extends Model $q->where('software_id','=',$this->attributes['software_id']); } - }); + }) + ->orderBy('id'); return $query; }