I have a table with 'name' Field:
db.define_table('person', Field('name', 'string'))

'name' is in format 'Name Lastname', ie, "Mark Twain". Can I sort such 
records by Lastname when selecting with "orderby"? Like this: 
db(db.person).select(db.person.name, orderby=?) 

I thought about writing lambda with db.person.name.split(' ', [-1]) but can 
not figure it out...

-- 



Reply via email to