Return document that has $max value in specific field using mongodb
what I did was this:
exported to a new collection temp and then, grouped by total_winds, sorted by ID and took first elements. It returns not only the very first, but all those being equal.

  db.temp.aggregate([
  {$group: {
      _id: "$total_wins",
      my_winner: {$push: "$$ROOT"}
  }},
  {$sort:{_id:-1}},
  {$limit:1}  ]).pretty()