Added specs for sorting issue