add sorting; implement sort criteria in default repo ; adding html header

This commit is contained in:
2025-01-01 23:28:12 +01:00
parent db91ebeece
commit fe9ac81281
6 changed files with 43 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
package data
// TODO docstring
type ISearchCriteria[T any] interface {
Matches(t T) bool
type ISortCriteria[T any] interface {
Weight(t T) int
}