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

Add sort parameter to mongo queries #10

Merged
merged 2 commits into from
Sep 25, 2013

Conversation

maxmamis
Copy link
Contributor

No description provided.

@@ -153,6 +153,9 @@ function query($table, $query) {
if (!empty($query['limit'])) {
$return = $return->limit($query['limit']);
}
if (!empty($query['sort'])) {
$return = $return->sort($query['sort']);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please use spaces instead of tabs?

ppatriotis added a commit that referenced this pull request Sep 25, 2013
Add sort parameter to mongo queries
@ppatriotis ppatriotis merged commit 22bce21 into prolificinteractive:develop Sep 25, 2013
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.

2 participants