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

On trie que s'il y a besoin #262

Closed
bazooka07 opened this issue Dec 2, 2017 · 0 comments
Closed

On trie que s'il y a besoin #262

bazooka07 opened this issue Dec 2, 2017 · 0 comments

Comments

@bazooka07
Copy link
Collaborator

plxGlob::query permet de trier les articles, entre autres.
Si on ne précise pas le tri, par défaut on fait un tri 'rsort'.

Pour compter le nombre d'articles à afficher dans plxMotor::nbArticles ligne n°1052, on appelle la fonction précédente qui va trier de façon implicite.

Tri inutile ! la quantité ne change pas.
Et certainement avec :
plxMotor::nbComments()
plxMotor::getNbCommentaires

@pluxml pluxml closed this as completed in 323b45c Dec 4, 2017
bazooka07 pushed a commit to bazooka07/PluXml that referenced this issue Dec 4, 2017
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

No branches or pull requests

1 participant