I have a field in MongoDB that is a String type. It will contain some combination of letters and numbers like \"10\", \"101\", \"11\", \"112\", \"x115\", \"abc.5\". Right now
You can use collation with numericOrdering parameter. Example:
db.collectionName.find().sort({fieldToSortOnName: -1}).collation({locale: "en_US", numericOrdering: true})
Here locale: 'en_us' is used for making a case insensitive search or sort.