2692 Added sorted function and tests
Fixed problems with code
Fixeed problems with code#2
Fixed problems with code#3
Fixed problems with code#4
Fixed problem with code
Deleted space(merge or riot :D)
Merge pull request #13 from dpolcyn/bug_2692_fix

[2692] Added sorted function and tests