Answer the question
In order to leave comments, you need to log in
How to sort using typeorm?
The database contains the following data:
[
{id: 1, username: "test", amount: 2},
{id: 2, username: "example", amount: 0},
{id: 3, username: "hello", amount: 1},
{id: 4, username: "fsa", amount: 0},
{id: 5, username: "aas", amount: 10},
]
[
{id: 5, username: "aas", amount: 10},
{id: 1, username: "test", amount: 2},
{id: 3, username: "hello", amount: 1},
]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question