removed default sort

This commit is contained in:
Julian Graf 2023-09-11 11:28:26 +02:00
parent 0fd5f3b417
commit 98105642fc

View File

@ -21,19 +21,7 @@ func (c *Coll[TData]) List(ctx context.Context, filter ct.Filter, pageSize *int,
if filter != nil { if filter != nil {
pipeline = filter.FilterQuery() pipeline = filter.FilterQuery()
fpf1, fpd1, fpf2, fpd2 := filter.Pagination() pf1, pd1, pf2, pd2 = filter.Pagination()
if fpf1 != "" {
pf1 = fpf1
}
if fpd1 != "" {
pd1 = fpd1
}
if fpf2 != "" {
pf2 = fpf2
}
if fpd2 != "" {
pd2 = fpd2
}
} }
sortPrimary := pf1 sortPrimary := pf1