[{"_id":"5c0155a8407cf173d7ff01fa",loginAttempts : 6, createdAt:2018-11-30 20:49:52.855},
{"_id":"5c0155a8407cf173d7ff01fa",loginAttempts : 1, createdAt:2018-11-30 20:49:52.855},
{"_id":"5c0155a8407cf173d7ff01fa",loginAttempts : 8, createdAt:2018-11-30 20:49:52.855},
{"_id":"5c0155a8407cf173d7ff01fa",loginAttempts : 5, createdAt:2018-11-30 20:49:52.855},
{"_id":"5c0155a8407cf173d7ff01fa",loginAttempts : 5, createdAt:2018-11-30 20:49:52.855},
{"_id":"5c0155a8407cf173d7ff01fa",loginAttempts : 5, createdAt:2018-11-30 20:49:52.855},
{"_id":"5c0155a8407cf173d7ff01fa",loginAttempts : 3, createdAt:2018-11-30 20:49:52.855}]
Above is a snapshot of User Document. How can I find a user with least loginAttempts value. If same value is found for mutliple users then return one having creationDate value.