tf.contrib.framework.sort( values, axis=-1, direction='ASCENDING', name=None )
Sorts a tensor.
values: 1-D or higher numeric
axis: The axis along which to sort. The default is -1, which sorts the last axis.
direction: The direction in which to sort the values (
name: Optional name for the operation.
Tensor with the same dtype and shape as
values, with the elements
sorted along the given
ValueError: If axis is not a constant scalar, or the direction is invalid.