[development] Ranking in a query
nan wich
nan_wich at bellsouth.net
Thu Oct 28 13:32:17 UTC 2010
I have a query that counts comments and all is well with it. But I'd like add a
ranking column to the display. The problem is that it uses tablesort, so the
ranking has to be in the query because I don't know which column will be used to
sort the display. Oh, it is also paged so I can't count on the first row being
#1 and so on.
Has anyone got an idea on how to add a ranking column to the query? (MySql
only.)
Nancy
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20101028/92b266bf/attachment.html
More information about the development
mailing list