-
-
Notifications
You must be signed in to change notification settings - Fork 5
OrderBy
Rasmus Wulff Jensen edited this page Feb 15, 2025
·
1 revision
NB: This is a v 2.0 and higher only feature
When you return multiple cards from the API you are normally given them back in the 'latest card first' order.
If you wish to change this you can via the GetCardOptions parameter specify the OrderBy property
You have the following order by options:
- CreateDateAsc
- CreateDateDesc
- StartDateAsc
- StartDateDesc
- DueDateAsc
- DueDateDesc
- NameAsc
- NameDesc
//Get Cards On Board ordered by name
var cardOrderedByName = await _trelloClient.GetCardsOnBoardAsync("644caf075b7fc5bd3f60830e", new GetCardOptions
{
OrderBy = CardsOrderBy.NameAsc
});If you are looking for info on a specific method in TrelloDotNet then expand the Pages above and input the 'MethodName' (Example: 'AddCardAsync')