Various trials to sort the last rule