Added AMP stable sort by key & made modifications to AMP & CL test cases...

... to check for specific ranges