Integer sorting by reversals