fsprojects / FSharp.Configuration

The FSharp.Configuration project contains type providers for the configuration of .NET projects.
http://fsprojects.github.io/FSharp.Configuration/
Other
114 stars 63 forks source link

Fix isSortable in updateList - incorrectly true when list is empty #158

Closed deneuxj closed 2 years ago

deneuxj commented 4 years ago

When a list is empty, it is recognized as sortable, and an attempt is made to sort the updaters' values. This fails when the values aren't comparable. Use the item type itself and reflection for the sortability criterion instead.