Implements the ascending flag for basic type comparators.

Solves #588.