def backward_query(): return User.all().order('open').order('closed').order('__key__')
def forward_query(): return User.all().order('-open').order('-closed').order('-__key__')