#NEWLINE# def order_property_names( query ) : #NEWLINE# #INDENT# ' Generates a list of relevant order properties from the query.\n\n  Returns:\n    A set of Property objects.\n  ' #NEWLINE# ( filters , orders ) = datastore_index . Normalize ( query . filter_list ( ) , query . order_list ( ) , [ ] ) #NEWLINE# orders = _GuessOrders ( filters , orders ) #NEWLINE# return set ( ( order . property ( ) for order in orders if ( order . property ( ) != '__key__' ) ) )