google.appengine.datastore.datastore_stub_util.NormalizeCursors

Normalizes compiled cursors in place.

Any position specified in the position group is moved to either the postfix_position or absolute_position field and the position group is cleared.

If the cursor position does not specify before_ascending, populate it. If before_ascending is already populated, use it and the sort direction from the query to set an appropriate value for before.

query datastore_pb.Query
first_sort_direction first sort direction as returned by _GuessOrders