Hello all. In my grid if the user click on head columns for reference fields the order is made by row id and not by the row format.
My db: db.define_table('l1_categories', Field('name'), format = '%(name)s') db.define_table('l2_categories', Field('l1_category', 'reference l1_categories'), Field('name')) My grid: query = db.l2_categories grid = SQLFORM.grid(query=query, csv=False, links_in_grid=False, links= None, searchable=True, editable=True, deletable=False, create=True, details= False) How can I give the possibility to the user when he click on the l1_category head column to order it by format ? If there is a solution I think it will also give the possibility to search with these words. Thanks, regards. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.