Implementing (half way) Rebinding Variable Names for sorted pattern according to the order.