Skip to content

How to display a list in descending order #332

@mg72266

Description

@mg72266

Is there a way to display a list in descending order?

Given an array,

var array = new List<string> { "555100", "555101", "555102" };

I have a string that I format it like so,

var string = Smart.Format("array - {0:{:substr(3)}| }", array)

Am I able to format the string so I can have the array appear in descending order without reversing the array object?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions