Ashish Patel: TIL

Atom feed

Recently added: Dotnet Common commands, NestJS Common commands, Flask Common commands, Django Common commands, PostgreSQL Common commands

Sort results in descending

-1 for descending and 1 for ascending

todos.find({ completed: true }, { sort: { completedDate: -1 } }).then((completedTodos) => {})

Created 2020-08-23T11:15:58+05:30 · Edit