add &self argument to Sort trait