Remove the order = 'None' and corresponding check. When order is specified its a string of the form = (~) tablename.coulumnname , where the optional ~ indicate a descending order.
Hello,
This is broken since 1457e12f70 . 'self.url' does'nt have any get_vars,post_vars, only one parameter called vars. I suggest to pass all variables instead with request.vars that will encompass both get and post vars... Another possibility would be to change the self.url signature but I don't see the purpose of making the distinction between post and get vars in this case.