Implemented :sorted option and fixed Hamster tests for quartiles