diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index fd6d24f..77aebcd 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,9 +4,9 @@
-
+
-
+
@@ -153,7 +153,6 @@
-
@@ -178,7 +177,8 @@
-
+
+
true
diff --git a/pkg/internal/server/api/notifications_api.go b/pkg/internal/server/api/notifications_api.go
index 4cd2b23..dfe1917 100644
--- a/pkg/internal/server/api/notifications_api.go
+++ b/pkg/internal/server/api/notifications_api.go
@@ -32,7 +32,7 @@ func getNotifications(c *fiber.Ctx) error {
if err := tx.
Limit(take).
Offset(offset).
- Order("CASE WHEN read_at IS NULL THEN 0 ELSE 1 END, created_at").
+ Order("read_at DESC, created_at").
Find(¬ifications).Error; err != nil {
return fiber.NewError(fiber.StatusInternalServerError, err.Error())
}