Skip to content

krukle/FrendsTask_KalmarKommun.Datalager.Sort

Repository files navigation

FrendsTask_KalmarKommun.Datalager.Sort

Frends task for sorting lists of dictionaries.

Actions Status MyGet License: MIT

Installing

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.

Tasks

Sort

Task for sorting a list of dicitionaries, based on the values of a key from the dictionaries.

Properties

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"

Returns

The list: ListToSort, sorted.

Type Description Example
List<Dictionary<string, string>> Sorted list of dictionaries. [ { { "season", "autum-2023" }, { "month", "october" } } ]

Building

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

Contributing

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.

  1. Fork the repository on GitHub
  2. Clone the project to your own machine
  3. Commit changes to your own branch
  4. Push your work back up to your fork
  5. 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!