diff way of sorting