Skip to content
New issue

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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix sort by latest/newest posts in getposts function inside post controller #14

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ShhmonDai
Copy link

You might have noticed that the sort by latest/newest doesn't work in our search page. (You can test it in the hosted main project) It is due to a small typo in the post controller getposts function. Instead of "order" we are actually passing "sort" from our search page. So we want our getposts function to look for the value of sort not order.

…roller

You might have noticed that the sort by latest/newest doesn't work in our search page. It is due to a small typo in the post controller getposts function. Instead of "order" we are actually passing "sort" from our search page.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant