Frends task for sorting lists of dictionaries.
You can install the task via Frends UI Task View or you can find the NuGet package from the following NuGet feed https://www.myget.org/F/frendstasks-kalmarkommun/api/v3/index.json and in Gallery view in MyGet https://www.myget.org/feed/frendstasks-kalmarkommun/package/nuget/KalmarKommun.Datalager.Sort.
Task for sorting a list of dicitionaries, based on the values of a key from the dictionaries.
Property | Type | Description | Example |
---|---|---|---|
ListToSort | List<Dictionary<string, string>> |
List of dictionaries to sort. | [ { { "season", "autum-2023" }, { "month", "october" } } ] |
Key | string |
Key of values in dictionaries to sort by. | "season" |
The list: ListToSort
, sorted.
Type | Description | Example |
---|---|---|
List<Dictionary<string, string>> |
Sorted list of dictionaries. | [ { { "season", "autum-2023" }, { "month", "october" } } ] |
Clone a copy of the repository:
git clone https://github.com/krukle/FrendsTask_KalmarKommun.Datalager.Sort
Rebuild the project:
dotnet build
Run tests:
dotnet test
Create a NuGet package:
dotnet pack --configuration Release
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
- Fork the repository on GitHub
- Clone the project to your own machine
- Commit changes to your own branch
- Push your work back up to your fork
- Submit a Pull request so that we can review your changes
NOTE: Be sure to merge the latest from "upstream" before making a pull request!