21
0
Fork 0

removed default sort

This commit is contained in:
Julian Graf 2023-09-11 11:28:26 +02:00
parent 0fd5f3b417
commit 98105642fc
1 changed files with 1 additions and 13 deletions

View File

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