Further work on order and sort