We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
hi, thanks for the great library 馃憣
i'm trying to sort by primary key, as in
type Row struct { ID uint64 `boltholdKey:"ID"` }
and
var rows []*Row db.Find(&rows, (&bolthold.Query{}).SortBy("ID").Reverse())
despite the .Reverse(), the rows will be sorted in ascending order
rows
full reproduction: https://go.dev/play/p/WVmNyeZODCK
thanks!
The text was updated successfully, but these errors were encountered:
Thanks for the report, definitely overlooked that since the PK is already sorted naturally, however it should absolutely handle reverse properly.
Sorry, something went wrong.
Should be fixed now in master. Thanks for reporting.
timshannon
No branches or pull requests
hi, thanks for the great library 馃憣
i'm trying to sort by primary key, as in
and
despite the .Reverse(), the
rows
will be sorted in ascending orderfull reproduction: https://go.dev/play/p/WVmNyeZODCK
thanks!
The text was updated successfully, but these errors were encountered: