fix sort order.