got sorting wrong