|
@@ -231,7 +231,7 @@ namespace InABox.Core
|
|
|
{
|
|
|
var result = new Dictionary<TKey, TValue>();
|
|
|
var sorted = sort == null ? Rows : Rows.OrderBy(x => x.Get(sort)).ToList();
|
|
|
- foreach (var row in Rows)
|
|
|
+ foreach (var row in sorted)
|
|
|
result[row.Get(key)] = row.Get(value);
|
|
|
return result;
|
|
|
}
|
|
@@ -241,7 +241,7 @@ namespace InABox.Core
|
|
|
{
|
|
|
var result = new Dictionary<TKey, string>();
|
|
|
var sorted = sort == null ? Rows : Rows.OrderBy(x => x.Get(sort)).ToList();
|
|
|
- foreach (var row in Rows)
|
|
|
+ foreach (var row in sorted)
|
|
|
{
|
|
|
var display = new List<object>();
|
|
|
foreach (var value in values)
|