Patch 1- Making use of order_rules().

The order_rules() function is now used after reading the rule .json file.