Fix boolean condition.
Ensure no edit is done when order is already correct.
Add test case.
Activate writing of content by bot.
Add test cases.