Added simple sort function, added function to fix string to list, tests ...

...pass