Tests, default and custom sorting