Dictionary order

Whats wrong in my code, I think thats in the merge sort function of the strings . Plz tell the correction

Your code is not producing correct output for following test case,
abc
Expected output :
acb
bac
bca
cab
cba
Your output :
acb
bac
bca
cba
cab

I would recommend you to use a bool comparator function in your code for correct order printing,

How to put the bool comparator??

plz check this code-https://ide.codingblocks.com/s/156542

I have edited your code, only few minor changes I have made, refer to this code,