Refine version sort order.