Fixed some issues with merge sortbykey + corrected many test cases + add...

...ed rsdixSortByKey prototype