ids = [2, 3, 1, 4]
When I use this list in a query, like this:
db(db.test.id.belongs(ids)).select()
I get results sorted by id, like (1, 2, 3, 4), but what I want is the exact order that I sent i-e (2, 3, 1, 4)
Is there any way to achieve this easily in web2py?