chore(jotts): update order of notes by updated_at bcedf075
Steve · 2026-10-24 06:59 1 file(s) · +1 −1
apps/jotts/internal/store/store.go +1 −1
72 72
}
73 73
74 74
func List(db *sql.DB) ([]Note, error) {
75 -
	rows, err := db.Query(`SELECT ` + noteColumns + ` FROM notes ORDER BY id DESC`)
75 +
	rows, err := db.Query(`SELECT ` + noteColumns + ` FROM notes ORDER BY updated_at DESC`)
76 76
	if err != nil {
77 77
		return nil, err
78 78
	}