def order_property_names(query):
 (filters, orders) = datastore_index.Normalize(query.filter_list(), query.order_list(), [])
 orders = _GuessOrders(filters, orders)
 return set((order.property() for order in orders if (order.property() != '__key__')))

def order_property_names ( query ) : ( filters , orders ) = datastore_index . Normalize ( query . filter_list ( ) , query . order_list ( ) , [ ] ) orders = _GuessOrders ( filters , orders ) return set ( ( order . property ( ) for order in orders if ( order . property ( ) != '__key__' ) ) )
generates a list of relevant order properties from the query .