Work out the re-ordering procedure