Fixing sort order.