Sort employee signatures and approvals by most recently updated

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2026-04-03 15:56:07 +02:00
parent b610a19b84
commit 2b377a22e7
6 changed files with 14 additions and 2 deletions

View File

@@ -52,6 +52,8 @@ func (p Document) CursorKey(orderBy DocumentOrderField) page.CursorKey {
switch orderBy {
case DocumentOrderFieldCreatedAt:
return page.NewCursorKey(p.ID, p.CreatedAt)
case DocumentOrderFieldUpdatedAt:
return page.NewCursorKey(p.ID, p.UpdatedAt)
case DocumentOrderFieldTitle:
return page.NewCursorKey(p.ID, p.Title)
case DocumentOrderFieldDocumentType: