Isn't that already the default behavior per docs 
<https://cloud.google.com/appengine/docs/python/search/sortexpressionclass#Constructor>
?

On Wednesday, November 16, 2016 at 5:17:31 AM UTC+2, Bradley Mclain wrote:
>
> search.SortExpression(
>   expression="sort_field",
>   direction=search.SortExpression.DESCENDING,
>   default_value="default_field"
> )
>
> In the event that sort_field is missing I would like it to use the value 
> from default_field instead.
>
> Is something like this possible?
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/9d54bd3b-2bda-4d4c-a54d-4895e9f1cc4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to